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

TupleConstructor could copy annotations to constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.15
    • None
    • Compiler

    Description

      There are a number of use cases where it is necessary or helpful to annotate constructor arguments; two that I use frequently are injection qualifiers and @JsonProperty.

      When @TupleConstructor creates a constructor for a property that carries an annotation that also has a target of PARAMETER, I propose that it should copy that annotation to the generated constructor parameter.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chrylis Christopher Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: