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

Incorrect field lookup failure when a child class invokes a method that creates an anonymous class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.7, 2.2.0-beta-2
    • 2.3.9
    • Compiler
    • None
    • jdk 1.7 u40, tested on os x and linux

    Description

      See https://bitbucket.org/marshallpierce/groovy-subclass-field-lookup-bug for a very small reproduction of the bug (run 'gradle build', look at failing tests).

      It appears that looking up fields in parent classes gets confused when the field lookup happens inside an anonymous class created by either parent or child.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mpierce Marlon Pierce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: