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 2022/03/25 14:14:00 UTC
[jira] [Closed] (GROOVY-10545) Regression: Property resolution changed 3 to 4
[ https://issues.apache.org/jira/browse/GROOVY-10545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles closed GROOVY-10545.
--------------------------------
Resolution: Information Provided
see notes in GROOVY-10530
> Regression: Property resolution changed 3 to 4
> ----------------------------------------------
>
> Key: GROOVY-10545
> URL: https://issues.apache.org/jira/browse/GROOVY-10545
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 4.0.1
> Reporter: Christopher Smith
> Priority: Minor
>
> I have a class with the following methods:
> {code}
> boolean isSingleId()
> String getSingleId()
> {code}
> Previously, {{composite.singleId}} resolved to {{getSingleId()}} and returned the string property. As of Groovy 4, it resolves to {{isSingleId()}} and returns a boolean. This is probably undefined behavior, but it is a breaking change from 3 and should probably at least be in the release notes if consistent behavior cannot be guaranteed.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)