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

JSR308 constructor call annotations not resolved or available

    XMLWordPrintableJSON

Details

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

    Description

      Consider the following:

      import java.lang.annotation.*
      @Target(ElementType.TYPE_USE)
      public @interface A {
      }
      
      Object o = new @A Object()
      

      The annotation @A is added to the AST into the Object type's annotations. However, once type is resolved, the annotations come from the redirect and so this annotation is left unresolved and unavailable.

      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: