Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Any
Description
Groovyjsh may raise MissingpropertyExceptions due to careless calls to the .class property, should use getClass instead (one call introduce by me earlier).
The same goes for completion, which btw can be extended to complete properties found via getProperties().
To reproduece, e.g. call (on groovy master branch):
x = new Object() {public Object getProperty(String name) {throw new MissingPropertyException('From test', name, null)}}
or tab completion on such an Object.