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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              ncode Niko Fink

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment