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

Multidimensional Arrays: Incompatible argument to function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 1.8.7, 2.0.1
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: