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

groovyc compiles file, but running it fails with java.lang.VerifyError

    XMLWordPrintableJSON

Details

    Description

      The following file contains a typo. It builds well with groovyc, but fails to run with groovy and raises an exception:

      Caught: java.lang.VerifyError: (class: testCompile, method: aMethod signature: ()Ljava/lang/Object Register 4 contains wrong type

          def aMethod() {
              try {
                  int i = 0
              }
              catch(AssertionError e) {
                      println e
              }
              catch(Throwable t) {
                      println e // THIS IS A TYPO, OUTSIDE OF THE SCOPE
              }
          }
      
      aMethod()
      

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            ricardo Ricardo Rocha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: