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

java.lang.VerifyError when using field from parent as default value for a parameter in a child's contructor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.2.2
    • Component/s: bytecode
    • Labels:
    • Environment:
      Groovy Version: 2.1.7 JVM: 1.7.0_25 Vendor: Oracle Corporation OS: Linux

      Description

      When using a field of the parent as a default value for a parameter in the child's constructor, the following exception is thrown:

      java.lang.VerifyError: (class: Child, method: <init> signature: ()V) Expecting to find object/array on stack
      at bug.run(bug.groovy:1)

        Attachments

        1. bug.groovy
          0.2 kB
          Niko Fink

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              ncode Niko Fink
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: