This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
java/8296: gcjh generates incorrect JNI header
- From: braden at endoframe dot com
- To: gcc-gnats at gcc dot gnu dot org
- Cc: tflynn at users dot sf dot net
- Date: 21 Oct 2002 05:03:51 -0000
- Subject: java/8296: gcjh generates incorrect JNI header
- Reply-to: braden at endoframe dot com
>Number: 8296
>Category: java
>Synopsis: gcjh generates incorrect JNI header
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 20 22:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: braden@endoframe.com
>Release: 3.2
>Organization:
>Environment:
Red Hat Linux 8.0
>Description:
For the native method
native void f(float arg[][]);
javah from the Sun JDK (1.4.1) generates the declaration
JNIEXPORT void JNICALL Java_Test_f
(JNIEnv *, jobject, jobjectArray);
gcjh -jni, however, generates
extern void Java_Test_f (JNIEnv *env, jobject, jfloatArray);
Note that the third argument is different.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="Test.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Test.java"
cHVibGljIGNsYXNzIFRlc3QKewogIHByaXZhdGUgbmF0aXZlIHZvaWQgZihmbG9hdCBhcmdbXVtd
KTsKfQo=