[armedbear-devel] multidimensional java arrays?

Cyrus Harmon ch-lisp at bobobeach.com
Thu Feb 6 01:52:31 UTC 2014


I am trying to connect ABCL up with some java code that uses multidimensional arrays of the form:

        int[][] theArray = new int[4][4];

The problem is that when I call this code I get something like this in return:

	#(#<jarray [I at 2d983837 {6492BA43}> #<jarray [I at 5d02b84a {5D9131FA}> #<jarray [I at 67684413 {6E4D706E}> #<jarray [I at 1e107e55 {4CD60DDE}>) 

that is a lisp array that contains 4 java arrays. I can’t pass this off to a method like this:

    static public int[][] arrayTest2(int[][] oldArray) {
      …
    }

I can work around this by creating a new java array myself (and populating it appropriately), but this is no fun. Is this the intended behavior?

thanks,

Cyrus




More information about the armedbear-devel mailing list