-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5.6
-
Fix Version/s: 3.0.0-beta-1, 2.5.7
-
Component/s: Compiler
-
Labels:None
Consider the following:
Anno.java
public @interface Anno {}
Pogo.groovy
@Anno public class Pogo {}
Pojo.java
@Anno public class Pojo {}
When compiled, Pogo lacks the annotation in its class file.
// Compiled from Pogo.groovy (version 1.8 : 52.0, super bit) public class Pogo implements groovy.lang.GroovyObject {
vs.
// Compiled from Pojo.java (version 1.8 : 52.0, super bit) @Anno public class Pojo {
The default for an annotation that lacks an @Retention annotation is @Retention(RetentionPolicy.CLASS).
- links to