Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.6
-
None
Description
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).
Attachments
Issue Links
- links to