Community
Participate
Working Groups
In this tracing aspect, printing thisJoinPoint.toString() or thisJoinPointStaticPart.toString() gives ClassNotFoundException on the String[] argument on main(): package test; public class SomeClass { public static void main(String[] args) { } } --------- package test; public aspect Trace { pointcut pc() : within(SomeClass); before () : pc() { System.out.println("-> " + thisJoinPointStaticPart); } } --------- output: -> staticinitialization(test.SomeClass.<clinit>) -> execution(void test.SomeClass.main(ClassNotFoundException))
This bug was fixed in HEAD a while back, the latest DEVELOPMENT jars (available from the download page) print: -> staticinitialization(test.SomeClass.<clinit>) -> execution(void test.SomeClass.main(String[])) given the same program.
Fix released as part of AspectJ 1.2.1