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

super.property is treated as this.property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-RC-1
    • 1.5
    • None
    • None
    • Windows Vista Home Premium, JDK 6.0
      Also Linux Fedora Core 3, JDK 1.5

    Description

      (Test case isn't a JUnit test - it's a failing assertion)

      Consider two classes - a parent and child. The parent has a property "foo" and the child overrides it.
      A call to super.foo in the child class should be the same as a call to super.getFoo() (in simple cases). In fact, it turns out to be equivalent to a call to this.getFoo().

      Attachments

        1. Test.groovy
          0.3 kB
          Jon Skeet

        Activity

          People

            paulk Paul King
            jskeet Jon Skeet
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: