Christopher Smith created GROOVY-7667: -----------------------------------------
Summary: AnnotationCollector should disregard @Target and @Retention Key: GROOVY-7667 URL: https://issues.apache.org/jira/browse/GROOVY-7667 Project: Groovy Issue Type: Improvement Affects Versions: 2.4.5 Reporter: Christopher Smith Priority: Minor I attempted to set up an annotation-inheritance situation using {{@AnnotationCollector}}, and I wrote the intermediate collector in Java. Since the intermediate collector was applied to my leaf collector, I put {{@Target(ElementType.ANNOTATION_TYPE)}} on the intermediate collector, but it appears that Groovy copied that annotation to the final target class, where it wasn't allowed and produced a compiler error. I suggest that {{@Target}} and {{@Retention}} should be specifically ignored when added to a collector annotation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)