Bug 74908 - String[] arguments returns ClassNotFoundException in thisJoinPointStaticPart.toString()
Summary: String[] arguments returns ClassNotFoundException in thisJoinPointStaticPart....
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-23 22:09 EDT by Adrian Powell CLA
Modified: 2004-10-21 04:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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