Eric Milles created GROOVY-11179:
------------------------------------

             Summary: 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


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