[kaffe] Bug Report: jni & two dimensional array parameter

Daniel Dittmann ddittmann at gmx.de
Tue Sep 23 23:53:03 PDT 2003

Hi all,

i want to call an jni-function with an two-dimensional integer-array 

The complete example from:


public class ArrayManipulation {

public native void manipulateArray(
         int[][] multiplier, Boolean lock);


The generation of the c-headerfile failed.

 >/usr/local/kaffe/bin/javac ArrayManipulation.java
 >export CLASSPATH=./:/usr/local/kaffe/jre/lib/rt.jar
 >/usr/local/kaffe/bin/javah ArrayManipulation
bogus array type `['

The attached patch fixed this error.

Thank you
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kaffe_jni_sign.diff
Url: http://kaffe.org/pipermail/kaffe/attachments/20030923/a5c4b323/attachment-0002.txt 

More information about the kaffe mailing list