[
https://issues.apache.org/jira/browse/GROOVY-11675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18020926#comment-18020926
]
ASF GitHub Bot commented on GROOVY-11675:
-----------------------------------------
eric-milles opened a new pull request, #2297:
URL: https://github.com/apache/groovy/pull/2297
(no comment)
> 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
> Assignee: Eric Milles
> Priority: Minor
>
> 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)