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

AST Transforms: @GroovyASTTransformationClass annotation should allow parameters of type Class[] not just String[]

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7-beta-2
    • 1.6.6, 1.7-rc-1
    • Compiler
    • None
    • all

    Description

      The annotation @GroovyASTTransformationClass marks another annotation as an AST Transformation. The annotation has a required parameter, a String[]. The parameters stores the fully qualified class name that will be invoked during the transformation phases.

      As a convenience, the parameter type should be Class[] instead of String[]. It allows programmers to specify a class not a String that represents a class.

      We cannot remove String[] because that would break backwards compatibility. We could add a 2nd parameter and then require 1 (and only one) of the two parameters to be specified.

      The was originally requested by Venkat Subramanium at 2gx 2009.

      Attachments

        1. 3839_16X.txt
          13 kB
          Roshan Dawrani

        Activity

          People

            roshandawrani Roshan Dawrani
            hamletdrc Hamlet D'Arcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: