Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.0
-
None
-
None
-
Tested with Groovy 1.8.0, 2.1.0, 2.2.2, and 2.4.0.
Description
GROOVY-2098 says that propertyMissing(String) is for getters, while propertyMissing(String,Object) is for setters.
But as the code snippet below shows, when propertyMissing(String) is missing, missing getters are handled by propertyMissing(String,Object):
class Sample { /** def propertyMissing(String name) { return "propertyMissing(String)" } **/ def propertyMissing(String name, value) { return "propertyMissing(String,Object)" } } println new Sample().missing // Prints `propertyMissing(String,Object)`
Is this a bug?
Attachments
Issue Links
- is related to
-
GROOVY-2098 Add support for propertyMissing to Groovy
- Closed