[ 
https://issues.apache.org/jira/browse/GROOVY-11179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles updated GROOVY-11179:
---------------------------------
    Affects Version/s: 5.0.0-alpha-2

> 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
>    Affects Versions: 5.0.0-alpha-2
>            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)

Reply via email to