[
https://issues.apache.org/jira/browse/GROOVY-11231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17788436#comment-17788436
]
Eric Milles commented on GROOVY-11231:
--------------------------------------
Can you provide a simple example? We have open tickets for annotated property
nodes and carrying over annotations to the generated methods. I don't think
there is a clear, simple solution since copying sometimes results in invalid or
undesired conditions.
> TupleConstructor could copy annotations to constructor
> ------------------------------------------------------
>
> Key: GROOVY-11231
> URL: https://issues.apache.org/jira/browse/GROOVY-11231
> Project: Groovy
> Issue Type: Improvement
> Affects Versions: 4.0.15
> Reporter: Christopher Smith
> Priority: Major
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)