Bug 383473

Summary: Exception thrown when trying to build with .aj files
Product: [Tools] AspectJ Reporter: Alex Beardsley <shadowphoenix>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Alex Beardsley CLA 2012-06-25 13:17:28 EDT
Build Identifier: 201205071000

I'm using Spring Roo 1.2.1.

java.lang.NullPointerException
at org.aspectj.ajdt.internal.core.builder.AsmElementFormatter.genLabelAndKind(AsmElementFormatter.java:205)
at org.aspectj.ajdt.internal.core.builder.AsmHierarchyBuilder.visit(AsmHierarchyBuilder.java:529)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:270)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1 ... ction$1.run(GlobalBuildAction.java:180)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Compile error: NullPointerException thrown: null

Reproducible: Always

Steps to Reproduce:
There are a lot of moving parts and so this situation is likely not easy to reproduce on other machines; the environment is complex.

1. Delete and put back a squiggly bracket which starts the class definition.
2. Save (with auto-build turned off).
3. Command-B to build.