Bug 158179 - @Inherited annos. cause NPE when LTWeaving
Summary: @Inherited annos. cause NPE when LTWeaving
Status: RESOLVED DUPLICATE of bug 153572
Alias: None
Product: AspectJ
Classification: Tools
Component: LTWeaving (show other bugs)
Version: 1.5.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-21 13:14 EDT by Dean Wampler CLA
Modified: 2006-09-22 12:35 EDT (History)
0 users

See Also:


Attachments
Source and .bat script demonstrating the bug. (1.71 KB, application/zip)
2006-09-21 13:15 EDT, Dean Wampler CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Wampler CLA 2006-09-21 13:14:00 EDT
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.
Comment 1 Dean Wampler CLA 2006-09-21 13:15:34 EDT
Created attachment 50648 [details]
Source and .bat script demonstrating the bug.

Zip w/ source files and a bat script that demonstrates the NPE.
Comment 2 Dean Wampler CLA 2006-09-21 15:59:18 EDT
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.
Comment 3 Andrew Clement CLA 2006-09-22 03:03:32 EDT
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.
Comment 4 Dean Wampler CLA 2006-09-22 12:35:50 EDT

*** This bug has been marked as a duplicate of 153572 ***