Commit 0d3911c9 by Tom Tromey Committed by Tom Tromey

re PR java/8296 (gcjh generates incorrect JNI header)

	* gjavah.c (decode_signature_piece): In JNI mode, print
	`jobjectArray' when array depth is nonzero.
	Fixes PR java/8296.

From-SVN: r58474
parent 8bfb45f8
2002-10-23 Tom Tromey <tromey@redhat.com>
* gjavah.c (decode_signature_piece): In JNI mode, print
`jobjectArray' when array depth is nonzero.
Fixes PR java/8296.
2002-10-15 Andrew Haley <aph@redhat.com> 2002-10-15 Andrew Haley <aph@redhat.com>
* parse.y (patch_invoke): Call force_evaluation_order on a static * parse.y (patch_invoke): Call force_evaluation_order on a static
......
...@@ -1289,7 +1289,7 @@ decode_signature_piece (stream, signature, limit, need_space) ...@@ -1289,7 +1289,7 @@ decode_signature_piece (stream, signature, limit, need_space)
/* If the previous iterations left us with something to print, /* If the previous iterations left us with something to print,
print it. For JNI, we always print `jobjectArray' in the print it. For JNI, we always print `jobjectArray' in the
nested cases. */ nested cases. */
if (flag_jni && ctype == NULL) if (flag_jni && (ctype == NULL || array_depth > 0))
{ {
ctype = "jobjectArray"; ctype = "jobjectArray";
*need_space = 1; *need_space = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment