This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Groovy AST transformations using annotations are not working in the current 7.2 dev builds (I imagine this never worked). Example: import groovy.transform.Field @Field String foo = 'hello' println foo Gives error like this: Compiling 1 source file to C:\Users\timbo\Documents\NetBeansProjects\GroovyTest\build\classes org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: C:\Users\timbo\Documents\NetBeansProjects\GroovyTest\src\GroovyScript1.groovy: Not an ASTTransformation: org.codehaus.groovy.transform.FieldASTTransformation declared by groovy.transform.Field 1 error C:\Users\timbo\Documents\NetBeansProjects\GroovyTest\nbproject\build-impl.xml:633: The following error occurred while executing this line: C:\Users\timbo\Documents\NetBeansProjects\GroovyTest\nbproject\groovy-build.xml:25: Compilation Failed BUILD FAILED (total time: 0 seconds)
Well this couldn't work earlier, because until now we were supporting only Groovy 1.6.4 version where groovy.transform package didn't exists at all. Easily reproducible --> Setting TM = 7.2
Yes, agreed. Since arriving in 1.8 these AST transfoms have become pretty widespread in use. Most real world groovy code now uses them, so I think its essential to support this.
Fixed in: web-main #c0fe5fd19cbb
Integrated into 'main-golden', will be available in build *201205110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c0fe5fd19cbb User: Martin Janicek <mjanicek@netbeans.org> Log: #210172 - Annotations for ASTTransformations do not compile