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

java.lang.VerifyError: Expecting to find object/array on stac

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1-rc-3
    • None
    • None
    • Groovy 1.0.1-SNAPSHOT Java 1.5

    Description

      class Super {
      def var
      def Super (String var)

      { this.var = var }

      }

      class Child extends Super {
      def s = "hello"
      def Child ()

      { super (s) }

      }

      def c = new Child ()

      Caught: java.lang.VerifyError: (class: Child, method: <init> signature: ()V)
      Expecting to find object/array on stack
      at TestSuper.class$(TestSuper.groovy)
      at TestSuper.run(TestSuper.groovy:15)
      at TestSuper.main(TestSuper.groovy)

      Obviously s should be declared static or initialized in the constructor but
      the error message should reflect that

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            pdemilly Pascal Demilly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: