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

super.property is treated as this.property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-RC-1
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: