Community
Participate
Working Groups
I am developing a library with AspectJ 1.1.1 on JDK 1.3.1_06 on Windows XP. All public static Introdctions to a static class can not be used from in a second module. Outline I have two projects AJP and libuser, the second is a plain old java program, which uses the full compiled output of the aspectj-lib (AJP). for any questions do not hesitate to ask me Arno@aspectsoft.de
Created attachment 6572 [details] sample File with two projects (*.zip)
Verified. This used to work in AspectJ 1.1.0. The change in behaviour seems to be a direct consequence of the fix for bug 41123. Now, introduced methods have the "Synthetic" attribute added to them in the constant pool and it seems to cause the observed breakage. Looks like some additional checking is required before adding the attribute ?
This bug can also be observed in interfaces (see bug #43972), which I believe is the same bug.
Fixed based on patch from George Harley. The fix is not to put the Synthetic attribute on these generated methods so that they can be seen by standard Java compilers.