Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-rc-3
-
Component/s: stub generation
-
Labels:None
-
Number of attachments :
Description
Groovy files that contain code outside of a class definition result in grammar-errors. Errors that I've witnessed include
Unknown AST: VARIABLE_DEF
Unknown AST: EXPR
Unknown AST: ASSERT
The attached file contains a minimalistic maven project that reproduces the error when running
mvn compile
That was actually the error using the old groovy-maven-plugin. The new gmaven (org.codehaus.groovy.maven:gmaven-plugin:jar:1.0-rc-3-SNAPSHOT) essentially gives the same error, but in a different format: Unexpected node: Node[1:1,27,EXPR]