[ 
https://issues.apache.org/jira/browse/GROOVY-8897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles updated GROOVY-8897:
--------------------------------
    Labels: annotations  (was: )

> Methods generated for Groovy properties do not carry over annotations
> ---------------------------------------------------------------------
>
>                 Key: GROOVY-8897
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8897
>             Project: Groovy
>          Issue Type: Improvement
>    Affects Versions: 2.4.15, 2.5.4
>            Reporter: Eric Milles
>            Priority: Major
>              Labels: annotations
>
> Consider the following:
> {code:groovy}
> class C {
>   @Deprecated
>   boolean condition
> }
> {code}
> Methods {{isCondition}}, {{getCondition}}, {{setCondition}} that are added by 
> {{Verifier.visitProperty}} do not have the {{java.lang.Deprecated}} 
> annotation.  The PropertyNode has a link to the {{FieldNode}} so deprecated 
> can be checked for there.  But the generated methods do not have this link.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to