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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.6
    • 2.2.2
    • bytecode
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: