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

@Field AST Transformation looses annotations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.8.1, 1.9-beta-1
    • None
    • None

    Description

      For reference : http://groovy.329449.n5.nabble.com/Revisiting-guice-injection-with-Groovy-1-8-td4387777.html

      The @Field AST transformation creates a FieldNode but forgets to put the other possible annotations on the generated field. For example, in the following code :

      @Awesome @Field def test
      

      The @Awesome annotation is lost.

      Attachments

        Issue Links

          Activity

            People

              melix Cédric Champeau
              melix Cédric Champeau
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: