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

No useful error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • None
    • None
    • JSR-06

    Description

      If you copy and paste this Code (The parenthese around the "instance-test" are missing):
      "
      class Test {
      def tt(sth) {
      if (!sth instanceof Object) return true
      return false
      }
      }

      def ttt = new Test()
      "
      into groovyConsole and run it, you receve this error message, which does not make sense:

      Exception thrown: java.lang.VerifyError: (class: Test, method: tt signature: (Ljava/lang/Object;)Ljava/lang/Object Expecting to find object/array on stack

      java.lang.VerifyError: (class: Test, method: tt signature: (Ljava/lang/Object;)Ljava/lang/Object Expecting to find object/array on stack
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at Script0.class$(Script0)
      at Script0.run(Script0:8)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:485)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:426)
      at gjdk.groovy.lang.GroovyShell_GroovyReflector.invoke(Unknown Source)
      at groovy.lang.MetaMethod.invoke(MetaMethod.java:111)
      at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:657)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:363)
      at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:158)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
      at groovy.ui.Console$_runScript_closure10.doCall(Console.groovy:504)
      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:585)
      at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:67)
      at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:657)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:363)
      at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:158)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
      at groovy.ui.Console$_runScript_closure10.doCall(Console.groovy)
      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:585)
      at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:67)
      at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:657)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:363)
      at groovy.lang.Closure.call(Closure.java:175)
      at groovy.lang.Closure.call(Closure.java:170)
      at groovy.lang.Closure.run(Closure.java:251)
      at java.lang.Thread.run(Thread.java:595)

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            uwe.hartl@gmx.net Uwe Hartl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: