[
https://issues.apache.org/jira/browse/GROOVY-11064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevin Sheppard updated GROOVY-11064:
------------------------------------
Description:
The following code throws a MissingPropertyException:
{code:java}
class User {
Boolean isValid() {
return true
}
}
assert new User().valid // Assertion fail with MissingPropertyException{code}
This worked fine up until the last 3.0.x release of Groovy.
was:
The following code throws a MissingPropertyException:
{code:java}
class User {
Boolean isValid() {
return true
}
}
assert new User().valid // Assertion fail with MissingPropertyException{code}
Environment:
JDK 17
Groovy 4.0.12
> MissingPropertyException is thrown when accessing a pseudo property
> -------------------------------------------------------------------
>
> Key: GROOVY-11064
> URL: https://issues.apache.org/jira/browse/GROOVY-11064
> Project: Groovy
> Issue Type: Bug
> Components: ast builder
> Affects Versions: 4.0.0, 4.0.12
> Environment: JDK 17
> Groovy 4.0.12
> Reporter: Kevin Sheppard
> Priority: Major
>
> The following code throws a MissingPropertyException:
>
> {code:java}
> class User {
> Boolean isValid() {
> return true
> }
> }
> assert new User().valid // Assertion fail with MissingPropertyException{code}
> This worked fine up until the last 3.0.x release of Groovy.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)