Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-beta-4
-
None
-
None
Description
When I first wrote groovy.util.Proxy I caught MissingPropertyException in getProperty and setProperty to know when to try the second object. I discovered soon after, however, that setProperty was throwing a MissingMethodException rather than MissingPropertyException when a property was not settable. Now, a few days later, getProperty is also throwing a new exception, GroovyRuntimeException. So Proxy is broken in it's present form. For safety we need to catch GroovyRuntimeException in both methods. But I also think that both Invoker methods should throw MissingPropertyException, for consistancy and to make it clear what the problem is.