Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.6
-
None
Description
Consider this:
class Foo { void setBar(String bar) {} } foo = new Foo() println foo.bar
The message is
groovy.lang.MissingPropertyException: No such property: bar for class: Foo
Possible solutions: bar
This is extremely confusing to users and I suggest that the message be changed to reflect that the property is write-only to avoid confusion
Attachments
Issue Links
- is related to
-
GROOVY-8064 Confusing error message when trying to access a property which is actually a method
- Closed