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

Empty try block causes VerifyError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta-3
    • 1.0-beta-4
    • None
    • None

    Description

      TryErrory.groovy:
      try { }
      catch (Throwable t) { }

      [m@h groovy]$ groovy TryError.groovy
      Exception in thread "main" java.lang.VerifyError: (class: TryError, method: run signature: ()Ljava/lang/Object Illegal exception table range
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
      at java.lang.Class.getDeclaredConstructors(Class.java:1169)
      at groovy.lang.MetaClass.<init>(MetaClass.java:100)
      at groovy.lang.MetaClassRegistry.getMetaClass(MetaClassRegistry.java:86)
      at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:123)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:98)
      at groovy.lang.GroovyShell.run(GroovyShell.java:171)
      at groovy.lang.GroovyShell.main(GroovyShell.java:85)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:474)

      Attachments

        Activity

          People

            Unassigned Unassigned
            morgan morgan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: