Description
Try this in Groovy Console:
// class compiles fine @Deprecated @Deprecated @Deprecated class IAmWayTooDeprecated {} // this works new IAmWayTooDeprecated() // but accessing the annotations at runtime fails with: // java.lang.annotation.AnnotationFormatError: Duplicate // annotation for class: interface java.lang.Deprecated: // @java.lang.Deprecated() println IAmWayTooDeprecated.annotations.size()
Attachments
Issue Links
- is related to
-
GROOVY-3930 groovyc does not allow multiple annotations of the same type even if Retention Policy is SOURCE
- Closed