This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

java/8296: gcjh generates incorrect JNI header


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]