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)

Reply via email to