Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Bug
-
4.0.0, 4.0.12
-
None
-
None
-
JDK 17
Groovy 4.0.12
Description
The following code throws a MissingPropertyException:
class User { Boolean isValid() { return true } } assert new User().valid // Assertion fail with MissingPropertyException
This worked fine up until the last 3.0.x release of Groovy.
Attachments
Issue Links
- is related to
-
GROOVY-6097 Using super.propertyName gives a MissingMethodException when the property is a boolean and uses the "isPropertyName" naming convention.
- Closed
-
GROOVY-9382 Inconsistent support for [Bb]oolean properties
- Closed