Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-11179

JSR308 inline constants for annotations in class header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.0-alpha-2
    • 5.0.0-alpha-3
    • None

    Description

      Consider the following:

      @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 = ""
        //...
      }
      

      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".

      Attachments

        Issue Links

          Activity

            People

              emilles Eric Milles
              emilles Eric Milles
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: