This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: FYI: fix for PR java/8296
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 23 Oct 2002 16:39:30 -0600
- Subject: Patch: FYI: fix for PR java/8296
- Reply-to: tromey at redhat dot com
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;