[
https://issues.apache.org/jira/browse/GROOVY-11875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gregory Moltchadski updated GROOVY-11875:
-----------------------------------------
Attachment: MRE.groovy
> Inner classes property vs field access
> --------------------------------------
>
> Key: GROOVY-11875
> URL: https://issues.apache.org/jira/browse/GROOVY-11875
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 5.0.4
> Reporter: Gregory Moltchadski
> Priority: Major
> Attachments: MRE.groovy
>
>
> The attached valid piece of code works fine on Groovy 4, but fails on Groovy
> 5 with the following exception:
> Cannot cast object 'false' with class 'java.lang.Boolean' to class
> 'java.util.concurrent.atomic.AtomicBoolean'
> It looks like the inner class tries to access the property via the underlying
> field instead of the getter.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)