5 // The purpose of this test is to ensure that signatures with non-top
6 // level class arguments work.
9 some_random_name (JNIEnv
*env
, jclass k
, jobject v
)
14 JNIEXPORT jint JNICALL
15 JNI_OnLoad (JavaVM
*vm
, void *nothing
)
22 r
= (*vm
)->GetEnv (vm
, (void **) &env
, JNI_VERSION_1_2
);
24 k
= (*env
)->FindClass (env
, "PR18116");
28 meth
.signature
= "(Ljava/lang/String;)I";
29 meth
.fnPtr
= some_random_name
;
31 r
= (*env
)->RegisterNatives (env
, k
, &meth
, 1);
34 return JNI_VERSION_1_2
;