Community
Participate
Working Groups
If I have an annotation type that is itself annotated with @Inherited. It causes a NPE during load-time weaving. See the zip which I'll attach momentarily. Run the batch script (after editing the paths it contains for your environment...) and you'll see the NPE. If you edit "TestAnno.java" and comment out the "@Inherited", no more NPE.
Created attachment 50648 [details] Source and .bat script demonstrating the bug. Zip w/ source files and a bat script that demonstrates the NPE.
Ugh. Looks like I was running 1.5.2, but the problem is fixed in 1.5.2a. I don't recall what was fixed in that release and there's nothing in the release notes, which appears to stop at 1.5.2.
From Adrians announce: "We have made an AspectJ 1.5.2a release available from the AspectJ downloads page. This release is identical to 1.5.2, with the addition of an inclusion of a fix for bug 153572 ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=153572). This fix is needed when load-time weaving with aspects that use annotation matching based on type annotations (the fix is also included in the 1.5.3 development stream)." looks like you hit that problem.
*** This bug has been marked as a duplicate of 153572 ***