Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 2.7.0.Release
-
Fix Version/s: 2.7.1.Release
-
Component/s: Compiler Integration, Editor
-
Labels:
-
Environment:Groovy/Grails Tool Suite Version: 3.0.0.M2 Build Id: 201206120636
Groovy-Eclipse plugin Version: 2.7.0.xx-20120703-1400-e42-RELEASE
OracleJDK 1.7.0_05 (64-Bit)
Ubuntu 12.04 (64-bit)
-
Number of attachments :
Description
@CompileStatic annotation in enum declaration break compilation.
Internal compiler error: java.lang.NullPointerException
Errors occurred during the build.
Errors running builder 'Java Builder' on project 'my-test-project'.
java.lang.NullPointerException
The problematic code is here:
@CompileStatic
enum Direction {
UP,
DOWN
}
A couple of us have tried to reproduce this problem, but can't. Can you attach the full stack trace from Window -> Show view -> Other.. -> Error log?
Also, I wonder if there are other projects in the workspace that are causing this. Can you also try creating a new workspace and place just a single project with this file in it?