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

Error in note 1 for pseudo-properties: should be "writing" not "reading"

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.4.12
    • Documentation

    Description

      http://groovy-lang.org/objectorientation.html#properties

      In the discussion of pseudo properties, the following code (an assignment)

      p.name = 'Foo' [1]

      is explained in note 1 as:

      [1] reading p.name is allowed because there is a pseudo-property name

      Since the code is an assignment, it should read "writing p.name is ...."

      Attachments

        Activity

          People

            paulk Paul King
            pfurbacher Paul Furbacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: