Advice weaving in AspectJ

Erik Hilsdale, Jim Hugunin. Advice weaving in AspectJ. In Gail C. Murphy, Karl J. Lieberherr, editors, Proceedings of the 3rd International Conference on Aspect-Oriented Software Development, AOSD 2004, Lancaster, UK, March 22-24, 2004. pages 26-35, ACM, 2004. [doi]

Review

The paper describes the inner workings of the weaving-process in the AspectJ compiler. Basically, jointpoints are matched to pointcuts. Java bytecode instructions are then added to execute the advice at that place. Arguments are given for not inlining the aspect code, followed by a detailed performance evaluation of both the compile-time and the run-time impact. The performance analysis is concluded with the remark that 22% of run-time performance penalty is not a problem for modern applications, which is surely debatable. Also, the paper fails to explain the separate compilation features of AspectJ which remain concealed and doubtful.

Posted by Nathan Bruning on 12/11/2009 16:05, last updated on 12/11/2009 16:06 (Public) Read more ...