diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-23 22:47:31 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-23 22:47:31 +0000 |
| commit | db34d7a0b33c7a007ff3ecb3a8d5807a411a809b (patch) | |
| tree | 03b604ccbd087846af746584fdf96ceccbd87b0b | |
| parent | 94aedecce72351263b373c1def00acd2581e5719 (diff) | |
| download | ppe42-gcc-db34d7a0b33c7a007ff3ecb3a8d5807a411a809b.tar.gz ppe42-gcc-db34d7a0b33c7a007ff3ecb3a8d5807a411a809b.zip | |
* gjavah.c (decode_signature_piece): In JNI mode, print
`jobjectArray' when array depth is nonzero.
Fixes PR java/8296.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58474 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/java/gjavah.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index cdfbd2c86cc..26e44c49296 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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 diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c index 53099ad3876..3d7e32e0022 100644 --- a/gcc/java/gjavah.c +++ b/gcc/java/gjavah.c @@ -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; |

