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

Bug 349786

Summary: Compiler crashes after renaming a class
Product: [Tools] AspectJ Reporter: stefano.dacchille
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: aclement
Version: 1.6.12   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description stefano.dacchille CLA 2011-06-20 03:54:47 EDT
This happens every time I want to do some refactoring and change the name of one of the classes in my project. Here's the exception:

java.lang.NullPointerException
at org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceType.getPerClauseForTypeDeclaration(EclipseSourceType.java:900)
at org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceType.getPerClause(EclipseSourceType.java:887)
at org.aspectj.weaver.ReferenceType.getPerClause(ReferenceType.java:834)
at org.aspectj.weaver.ResolvedType.collectCrosscuttingMembers(ResolvedType.java:745)
at org.aspectj.weaver.Crosscut ... AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Compile error: NullPointerException thrown: null
Comment 1 Andrew Clement CLA 2011-06-20 13:11:32 EDT
I just committed a guard for the null.  Should be in a dev build later this week.