Summary: | More NPEs in Java15AnnotationFinder | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Andrew Clement <aclement> | ||||
Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P2 | CC: | chris | ||||
Version: | DEVELOPMENT | ||||||
Target Milestone: | 1.6.2 | ||||||
Hardware: | PC | ||||||
OS: | Windows Vista | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Andrew Clement
2008-03-17 13:57:36 EDT
Created attachment 92723 [details]
patch class file for weaver
This class replaces the one in aspectjweaver.jar, to apply
jar -xvf patch.zip
jar -uvf aspectjweaver.jar org
The new version will output DEBUG info to System.err indicating the method it is having problems with - it will also attempt to continue rather than crash with an NPE.
This patch is for aspectjweaver.jar from AspectJ1.5.4 - it will not work if applied to later versions of AspectJ.
Thanks for the quick response, Andy. I tried the aspectjweaver.jar found in the following bug. The jar outputted the same or similar information, but unfortunately I did not find relevant output in Eclipse's or plugin's log. I'll give your attachment a go. http://jira.springframework.org/browse/SPR-4390 Note: I also tried aspectj*.jar from the latest 1.6 download. -Chris I have now committed a guard into the codebase for the NPE - but I still think it will error when this situation happens. But at least it may give out a sensible error rather than NPE. Thank you. I'll add the jars and give it a spin and report back. Sorry I haven't tried the patch yet - been pulled away. Again, thanks for your speedy response. unfortunately the build machine is complaining so it wont be in a dev build yet - i will post again when it is available for download. ok, build machine resurrected. The latest dev build from the download page includes the changes. missing 1.6.0 - once diagnostics are collected, a fix can go into 1.6.1 still seeing this problem Chris? NPE can't happen with the guard that is now in the dev builds of AspectJ - however that may have simply been hiding some underlying problem. Please reopen if you get a chance to try this again and it still fails for you. I would also say there were some issues with multi-threaded problems in the ReflectionBasedReferenceTypeDelegate types - and they have also been addressed in this timeframe (bug 227029) - that may have been a factor here. |