Summary: | NPE in org.aspectj.weaver.ResolvedType.lookupResolvedMember when saving a modified class | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Andy Wilkinson <andy.wilkinson> |
Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | aclement, christien |
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Mac OS X - Carbon (unsup.) | ||
Whiteboard: |
Description
Andy Wilkinson
2011-09-16 06:26:02 EDT
Here's another NPE with a slightly different stack trace: java.lang.NullPointerException at org.aspectj.weaver.ResolvedType.lookupMethod(ResolvedType.java:542) at org.aspectj.weaver.World.resolve(World.java:634) at org.aspectj.weaver.MemberImpl.resolve(MemberImpl.java:95) at org.aspectj.weaver.JoinPointSignatureIterator.addSignaturesUpToFirstDefiningMember(JoinPointSignatureIterator.java:112) at org.aspectj.weaver.JoinPointSignatureIterator.<init>(JoinPointSignatureIterator.java:49) at org.aspectj. ... quest(java.util.Map, String) Andy - can I possibly get a copy of your workspace? (or point me at a git repo containing the offending code?) I need to poke about it in a bit. I imagine your comment on generics is the trigger (we are likely looking something up in generic form when we should have erased it) but I need to be sure. Has there been any progress on this? We are seeing the same issue. We are using GWT and Spring with AspecJ, and we get an NPE on every Locator/GWT Adapter every time we save something that effects them (about 29 errors on a clean build). Does not seem to effect the end application, but it IS a real PITA. I didn't get a copy of the workspace from Andy - so haven't progressed this bug. However I did fix an awful generics issue quite recently that may play into this area. It is probably worth you trying a dev build to see if that helps. You can access the weaver jar here: http://www.eclipse.org/downloads/download.php?file=/tools/aspectj/dev/aspectjweaver-20120307083000.jar If you need the full AspectJ, it is here: http://www.eclipse.org/downloads/download.php?file=/tools/aspectj/dev/aspectj-DEVELOPMENT-20120307083000.jar If that doesn't help, I'd be happy to work with you on fixing this if you can share with me a setup that shows the problem? unsetting the target field which is currently set for something already released |