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

Accessing private field gives MissingPropertyException, not

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta-10
    • 1.0-beta-10
    • None
    • None

    Description

      When accessing a private field of some other class, Groovy gives a MissingPropertyException. This can be confusing to the user; better would be to throw an exception that says it's private. Perhaps create a PrivatePropertyException as a subclass of MissingPropertyException? Alsoo, I'm aware that even if we find a private property we have to keep looking for the property elsewhere. But if we can't find it, it make sense to me to say we found a private one during the search.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            mcspanky Martin C. Martin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: