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

Jochen Theodorou closed GROOVY-11312.
-------------------------------------
    Resolution: Won't Fix

This is an intentional change from GROOVY-10708 and related issues.

> Short notation for Boolean methods fails
> ----------------------------------------
>
>                 Key: GROOVY-11312
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11312
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 4.0.18
>            Reporter: Alan
>            Assignee: Jochen Theodorou
>            Priority: Major
>
> The following code succeeds
>  
> {code:java}
> class Hello {
>     public static boolean isBye() {
>         return true
>     }   
> }
> Hello.bye {code}
>  
> But the following fails
> {code:java}
> class Hello {
>     public static Boolean isBye() {
>         return true
>     }   
> }
> Hello.bye {code}
> with the exception
> {code:java}
> groovy.lang.MissingPropertyException: No such property: bye for class: Hello 
> {code}
> Same is true when trying to access instance methods.
>  
> Notice the only difference is the return type: Boolean vs boolean
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to