Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-185

setProperty() and now getProperty() do not throw MissingPropertyException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta-4
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            troyh Troy Heninger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified