You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Alan (Jira)" <ji...@apache.org> on 2024/02/15 21:15:00 UTC

[jira] [Updated] (GROOVY-11312) Short notation for Boolean methods fails

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

Alan updated GROOVY-11312:
--------------------------
    Priority: Major  (was: Minor)

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