The following information pertains to marshalling four dimensional arrays of int,
(i.e. int[][][][]).
Larger dimensions of int arrays (5D and up) are not supported, and will marshal as a message indicating that fact.
public void test4DIntArray() throws Exception {
Marshaller marshaller = new Marshaller(
Marshaller.FQCN_NEVER, Marshaller.SHOW_ACTUAL_TYPE);
int[][] object11 = { {1, 2}, {3, 4}, {5, 6} };
int[][] object21 = { {7, 8}, {9, 10}, {11, 12} };
int[][][] object1 = { object11, object21 };
int[][] object12 = { {1, 2}, {3, 4}, {5, 6} };
int[][] object22 = { {7, 8}, {9, 10}, {11, 12} };
int[][][] object2 = { object12, object22 };
int[][][][] object = { object1, object2 };
Map map = marshaller.marshal(object);
BufferedWriter bw = new BufferedWriter(new FileWriter("c:\\temp\\4d-int-array.mm"));
map.marshal(bw);
bw.close();
}