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

VerifyError - cannot access outer class static final fields from an inner class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.5
    • 1.8.6, 2.0-beta-3
    • Compiler
    • None

    Description

      Trying to access an outer class 'constant' (i.e. static final) from within an inner class results in a java.lang.VerifyError.

      The problem only manifests if the inner class is extending something; if it is not extending another class, access to the outer class member will work.

      Attachments

        1. InnerAccessOuter.groovy
          0.7 kB
        2. Groovy5259Bug.groovy
          2 kB
          Cédric Champeau

        Activity

          People

            melix Cédric Champeau
            rumour Jay Ashworth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: