[ https://issues.apache.org/jira/browse/GROOVY-11179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17766403#comment-17766403 ]
Eric Milles commented on GROOVY-11179: -------------------------------------- Recent changes in {{ResolveVisitor}} may have also impacted package and import annotations as well. > JSR308 inline constants for annotations in class header > ------------------------------------------------------- > > Key: GROOVY-11179 > URL: https://issues.apache.org/jira/browse/GROOVY-11179 > Project: Groovy > Issue Type: Bug > Reporter: Eric Milles > Assignee: Eric Milles > Priority: Major > Labels: annotations > > Consider the following: > {code:groovy} > @Tag(value=C.VALUE) > class C<@Tag(value=C.VALUE) T> > extends @Tag(value=C.VALUE) Object > implements @Tag(value=C.VALUE) Serializable > { > public static final String VALUE = "" > //... > } > {code} > Annotations located in the class header are processed before > {{VariableScopeVisitor}} (in {{ResolveVisitor}}). Only the annotation in > {{C}} properly resolves "C" and its constant field "VALUE". -- This message was sent by Atlassian Jira (v8.20.10#820010)