Alan created GROOVY-11312:
-----------------------------
Summary: 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
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)