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

Support AST transforms on the field generated by @Field in scripts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.4, 2.2.0-beta-1
    • None
    • None

    Description

      The following snippet from a script won't currently work:

      @Lazy @Field Sql db = new Sql(...)
      

      We copy over non-AST transforms when creating the field but not AST ones. This is intentional at the moment to align with limitations in how annotations are collected and traversed but we could attempt to add them after the fact to the collected known transforms.

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              paulk Paul King
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: