Bug 144086 - nullpointer exception during compilation
Summary: nullpointer exception during compilation
Status: RESOLVED DUPLICATE of bug 136585
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-27 16:14 EDT by Peter Van den Bosch CLA
Modified: 2006-06-05 04:39 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Van den Bosch CLA 2006-05-27 16:14:04 EDT
I've got a NullPointer thrown when compiling the Spacewar example project in eclipse. I am using the latest eclipse (3.1.2) and ajdt (1.3.1) releases.

To reproduce:
- make a new project, create the spacewar example project
- open GameSynchronization.aj of the spacewar package
- alter something in this file and save it
---> auto-building ---> NullPointerException thrown
Subsequent compilition attempts result in the same error, though the exception seems only to get triggered by altering the GameSynchronization.aj file

This is the stack trace:

java.lang.NullPointerException
at org.aspectj.weaver.PerObjectInterfaceTypeMunger.equals(PerObjectInterfaceTypeMunger.java:33)
at org.aspectj.weaver.bcel.BcelTypeMunger.equals(BcelTypeMunger.java:1672)
at java.util.AbstractList.equals(AbstractList.java:610)
at org.aspectj.weaver.CrosscuttingMembers.replaceWith(CrosscuttingMembers.java:321)
at org.aspectj.weaver.CrosscuttingMembersSet.addOrReplaceAspect(CrosscuttingMembersSet.java:73)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.addCrosscuttingStructures(AjLookupEnvironment.java:397)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.collectAllITDsAndDeclares(AjLookupEnvironment.java:333)
at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:173)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:301)
at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:315)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:862)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:269)
at org.aspectj.ajdt.internal.core.builder.AjBuildManager.incrementalBuild(AjBuildManager.java:168)
at org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:117)
at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191)

NullPointerException thrown: null
Comment 1 Andrew Clement CLA 2006-05-30 10:54:09 EDT
This is a dup of 136585 ... however, the fix is in AJDT1.4.0 which is for Eclipse 3.2.  There are no plans (currently) to backport the fix to a 1.3.2 for Eclipse 3.1.
Comment 2 Andrew Clement CLA 2006-06-05 04:39:05 EDT
nothing further to fix in AspectJ.

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