Bug 383473 - Exception thrown when trying to build with .aj files
Summary: Exception thrown when trying to build with .aj files
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 13:17 EDT by Alex Beardsley CLA
Modified: 2012-06-25 13:17 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 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.