You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Christopher Smith (Jira)" <ji...@apache.org> on 2022/03/24 18:30:00 UTC
[jira] [Created] (GROOVY-10545) Regression: Property resolution changed 3 to 4
Christopher Smith created GROOVY-10545:
------------------------------------------
Summary: 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
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)