Bug 74908

Summary: String[] arguments returns ClassNotFoundException in thisJoinPointStaticPart.toString()
Product: [Tools] AspectJ Reporter: Adrian Powell <apowell>
Component: CompilerAssignee: Adrian Colyer <adrian.colyer>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.2   
Target Milestone: 1.2.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Adrian Powell CLA 2004-09-23 22:09:29 EDT
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))
Comment 1 Adrian Colyer CLA 2004-09-24 10:33:25 EDT
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.
Comment 2 Adrian Colyer CLA 2004-10-21 04:31:55 EDT
Fix released as part of AspectJ 1.2.1