You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2025/09/17 13:47:00 UTC
[jira] [Assigned] (GROOVY-11675) split property definitions aren't carrying final modifier to getters
[ https://issues.apache.org/jira/browse/GROOVY-11675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles reassigned GROOVY-11675:
------------------------------------
Assignee: Eric Milles
> 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)