blob: 4c8ab63f1da2d0da1f781111278b2718c4b7cec2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
}
|