re PR libgcj/11951 (natMethod.cc (_Jv_CallAnyMethodA) should clear ffi_result before ffi_call)
PR libgcj/11951: * libjava.jni/pr11951.c: New file. * libjava.jni/pr11951.out: New file. * libjava.jni/pr11951.java: New file. From-SVN: r70543
This commit is contained in:
parent
303b74068a
commit
cd06983639
@ -1,3 +1,10 @@
|
||||
2003-08-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR libgcj/11951:
|
||||
* libjava.jni/pr11951.c: New file.
|
||||
* libjava.jni/pr11951.out: New file.
|
||||
* libjava.jni/pr11951.java: New file.
|
||||
|
||||
2003-08-12 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* libjava.jacks/jacks.xfail: Updated to account for new passes.
|
||||
|
16
libjava/testsuite/libjava.jni/pr11951.c
Normal file
16
libjava/testsuite/libjava.jni/pr11951.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
#include <pr11951.h>
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_pr11951_nmethod (JNIEnv *env, jclass myclass)
|
||||
{
|
||||
jmethodID method;
|
||||
jobject r;
|
||||
|
||||
method = (*env)->GetStaticMethodID (env, myclass, "dosomething",
|
||||
"()Ljava/lang/Object;");
|
||||
r = (*env)->CallStaticObjectMethod (env, myclass, method);
|
||||
printf ("%d\n", r == NULL);
|
||||
|
||||
(*env)->ExceptionClear (env);
|
||||
}
|
14
libjava/testsuite/libjava.jni/pr11951.java
Normal file
14
libjava/testsuite/libjava.jni/pr11951.java
Normal file
@ -0,0 +1,14 @@
|
||||
public class pr11951
|
||||
{
|
||||
public static Object dosomething()
|
||||
{
|
||||
throw new Error();
|
||||
}
|
||||
|
||||
public static native void nmethod();
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
nmethod();
|
||||
}
|
||||
}
|
1
libjava/testsuite/libjava.jni/pr11951.out
Normal file
1
libjava/testsuite/libjava.jni/pr11951.out
Normal file
@ -0,0 +1 @@
|
||||
1
|
Loading…
Reference in New Issue
Block a user