Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353457

Summary: NPE when saving an aspect - Aspectj Internal Compiler Error
Product: [Tools] AspectJ Reporter: Phil Hartley <phartley>
Component: LTWeavingAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: aclement, phartley, ramuprakash.c
Version: 1.6.12   
Target Milestone: 1.6.12   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Two projects none

Description Phil Hartley CLA 2011-07-30 17:23:36 EDT
Created attachment 200625 [details]
Two projects

java.lang.NullPointerException
at org.aspectj.weaver.ShadowMunger.getBinaryFile(ShadowMunger.java:201)
at org.aspectj.weaver.ShadowMunger.getBinarySourceLocation(ShadowMunger.java:188)
at org.aspectj.weaver.model.AsmRelationshipProvider.createAdviceChild(AsmRelationshipProvider.java:699)
at org.aspectj.weaver.model.AsmRelationshipProvider.addChildNodes(AsmRelationshipProvider.java:657)
at org.aspectj.weaver.model.AsmRelationshipProvider.crea ... bleAspect$edu_uat_cs2011_observerpattern_Observable$observers(java.util.List)
end public class edu.uat.csc263.su10045.observermodel.DepartmentManager

I have attached a zip file containing the two projects that in combination caused this problem.  To recreate, load the projects, go into DepartmentManagerObservableAspect, modify the pointcut and save the file.
Comment 1 Andrew Clement CLA 2011-08-15 16:29:53 EDT
this is now fixed.  It is due to the abstract aspect being only on the classpath.  
If you want to workaround it until an AJDT is available containing the change, just add the jar file (containing the abstract aspect) to the aspectpath rather than the classpath.
Comment 2 Andrew Clement CLA 2011-09-08 11:12:24 EDT
*** Bug 357067 has been marked as a duplicate of this bug. ***