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
This commit is contained in:
Tom Tromey 2002-10-23 22:47:31 +00:00 committed by Tom Tromey
parent 8bfb45f864
commit 0d3911c904
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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>
* parse.y (patch_invoke): Call force_evaluation_order on a static

View File

@ -1289,7 +1289,7 @@ decode_signature_piece (stream, signature, limit, need_space)
/* If the previous iterations left us with something to print,
print it. For JNI, we always print `jobjectArray' in the
nested cases. */
if (flag_jni && ctype == NULL)
if (flag_jni && (ctype == NULL || array_depth > 0))
{
ctype = "jobjectArray";
*need_space = 1;