[ 
https://issues.apache.org/jira/browse/GROOVY-11064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Sheppard closed GROOVY-11064.
-----------------------------------
    Resolution: Not A Bug

Changing the return type from {{Boolean}} to {{boolean}} fixes the issue as 
this aligns properly with the JavaBeans specification.

> 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)

Reply via email to