[ https://issues.apache.org/jira/browse/GROOVY-11675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King updated GROOVY-11675: ------------------------------- Description: Split property definitions were created as an alternative to the full long-hand way to express a property. They allow modifiers (final and synchronized), and annotations to be applied to either the backing field or the accessors. {code:groovy} import groovy.transform.PackageScope class MyTask { @Deprecated private final Integer f1 = 0 final Integer f1 protected synchronized Integer f2 = 0 synchronized Integer f2 public Integer f3 = 0 @Deprecated Integer f3 } println MyTask {code} Currently, everything is carried across except for the final on the {{f1}} accessor methods. was: Split property definitions were created as an alternative to the full long-hand way to express a property. They all modifiers (final and synchronized), and annotations to be applied to either the backing field or the accessors. {code:groovy} import groovy.transform.PackageScope class MyTask { @Deprecated private final Integer f1 = 0 final Integer f1 protected synchronized Integer f2 = 0 synchronized Integer f2 public Integer f3 = 0 @Deprecated Integer f3 } println MyTask {code} Currently, everything is carried across except for the final on the {{f1}} accessor methods. > split property definitions aren't carrying final modifier to getters > -------------------------------------------------------------------- > > Key: GROOVY-11675 > URL: https://issues.apache.org/jira/browse/GROOVY-11675 > Project: Groovy > Issue Type: Bug > Components: Compiler > Affects Versions: 4.0.24, 4.0.25, 4.0.26 > Reporter: Paul King > Priority: Major > > Split property definitions were created as an alternative to the full > long-hand way to express a property. They allow modifiers (final and > synchronized), and annotations to be applied to either the backing field or > the accessors. > > {code:groovy} > import groovy.transform.PackageScope > class MyTask { > @Deprecated private final Integer f1 = 0 > final Integer f1 > protected synchronized Integer f2 = 0 > synchronized Integer f2 > public Integer f3 = 0 > @Deprecated Integer f3 > } > println MyTask > {code} > Currently, everything is carried across except for the final on the {{f1}} > accessor methods. -- This message was sent by Atlassian Jira (v8.20.10#820010)