Details
Description
The javac command in Java 6 supports JSR 269 annotation processors. We should explore whether we can leverage the features provided by the javac compiler during joint compilation (JSR 199 compiler API?) or provide some kind of native support. This overlaps with (and maybe maps directly on to) how ASTTransformations (@Grab, @Grapes) work - though there are some differences too which would need to be addressed.
For a brief discussion starting point related to one use of such a feature, see:
http://blogs.sun.com/geertjan/entry/running_groovy_on_the_netbeans
Activity
Jesse Glick
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | test_test-groovy-3361_jar_1.0-SNAPSHOT_090217-182750.zip [ 40091 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.7-beta-x [ 15538 ] | |
| Fix Version/s | 1.7-beta-1 [ 14014 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.9-beta-x [ 17013 ] | |
| Fix Version/s | 1.7.x [ 15538 ] |
Sample Maven project demonstrating the problem. Run 'mvn package' using JDK 6. Test output will show:
Running testgroovy3361.ExampleTest
loaded item with ID java-example
Java example ran
But the annotation from Example.groovy was not processed and so this service (ID groovy-example) is not loaded at runtime.