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

JSR308: improve support for explicit-this type annotations

    XMLWordPrintableJSON

Details

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

    Description

      Consider the following:

      @Retention(RUNTIME) @Target(TYPE_USE) @interface TypeAnno0 { String value() }
      @Retention(RUNTIME) @Target(TYPE_USE) @interface TypeAnno1 { String value() }
      
      class Foo {
        def bar(@TypeAnno0(value="this") Foo this, @TypeAnno1(value="that") that) {
        }
      }
      

      This parses properly and populates the AST with a Parameter instance named "this". However it does not write out the necessary bytecode for the receiver annotaiton.

      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: