Patch: FYI: fix for PR java/8296

Tom Tromey tromey@redhat.com
Wed Oct 23 15:46:00 GMT 2002


I'm checking this in.

This patch fixes PR java/8296.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

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

Index: gjavah.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/gjavah.c,v
retrieving revision 1.92
diff -u -r1.92 gjavah.c
--- gjavah.c 8 Oct 2002 17:27:39 -0000 1.92
+++ gjavah.c 23 Oct 2002 22:45:01 -0000
@@ -1289,7 +1289,7 @@
       /* 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;



More information about the Gcc-patches mailing list