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

Multidimensional Arrays: Incompatible argument to function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.8.7, 2.0.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux, Groovy 2.0, Java 7

      Description

      Hey, starting with Groovy 1.8.x, and now as well with Groovy 2.0, the following code produces an error

      int[][] x = new int[10][10]
      x[1][1] += 5

      Error is:
      Caught: java.lang.VerifyError: (class: test, method: run signature: ()Ljava/lang/Object Incompatible argument to function
      java.lang.VerifyError: (class: test, method: run signature: ()Ljava/lang/Object Incompatible argument to function

      (there were some issues with multidimensional arrays in earlier versions but it still seems to be a problem in the new version)

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              casp Philipp Richter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: