On bytecode slicing and aspectJ interferences

  • Authors:
  • Antonio Castaldo D'Ursi;Luca Cavallaro;Mattia Monga

  • Affiliations:
  • Politecnico di Milano, Milano, Italy;Politecnico di Milano, Milano, Italy;Universita degli Studi di Milano, Milano, Italy

  • Venue:
  • Proceedings of the 6th workshop on Foundations of aspect-oriented languages
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

AspectJ aims at managing tangled concerns in Java systems. Crosscutting aspect definitions are woven into the Java bytecode at compile-time. Whether the better modularization introduced by aspects is real or just apparent remains unclear. While aspect separation may be useful to focus the programmer's attention on a specific concern, the oblivious nature of the weaving makes it difficult to figure out the behavior of the whole system. In particular, it is not easy to figure out if two aspects interfere one with the other. We built a bytecode slicer called XCutter in order to study which part of the woven code is affected by the application of an aspect. However, our experiments show that a static analysis of AspectJ woven bytecode does not give the expected results, unless the code is properly annotated.