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

size() not supported on two-dimensional boolean arrays

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1-beta-1
    • None
    • None

    Description

      groovy> def a = new boolean[10][10]
      groovy> a[0].size()

      Exception thrown: groovy.lang.MissingMethodException: No signature of
      method: [Z.size() is applicable for argument types: () values: {}

      groovy.lang.MissingMethodException: No signature of method: [Z.size()
      is applicable for argument types: () values: {}
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:572)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
      at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:119)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:211)
      at Script0.run(Script0:2)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:484)
      at groovy.lang.GroovyShell.evaluate(GroovyShell.java:425)
      at gjdk.groovy.lang.GroovyShell_GroovyReflector.invoke(Unknown Source)
      at groovy.lang.MetaMethod.invoke(MetaMethod.java:115)
      at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
      at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:131)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
      at groovy.ui.Console$_runScript_closure10.doCall(Console.groovy:503)
      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:69)
      at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:97)
      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:69)
      at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:713)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:560)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:450)
      at groovy.lang.Closure.call(Closure.java:188)
      at groovy.lang.Closure.call(Closure.java:183)
      at groovy.lang.Closure.run(Closure.java:264)
      at java.lang.Thread.run(Thread.java:595)

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            devijvers Steven Devijver
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: