java/8296: gcjh generates incorrect JNI header

braden@endoframe.com braden@endoframe.com
Sun Oct 20 22:06:00 GMT 2002


>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=



More information about the Java-prs mailing list