mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 15:20:06 +08:00
04297fe74f
* libjava.jni/findclass.java: New file * libjava.jni/findclass.c: New file * libjava.jni/findclass.out: New file From-SVN: r32011
13 lines
288 B
C
13 lines
288 B
C
#include <stdlib.h>
|
|
|
|
#include <findclass.h>
|
|
|
|
jclass
|
|
Java_findclass_doit (JNIEnv *env, jclass klass, jstring name)
|
|
{
|
|
const char *buf = (*env)->GetStringUTFChars (env, name, NULL);
|
|
jclass k = (*env)->FindClass (env, buf);
|
|
(*env)->ReleaseStringUTFChars (env, name, buf);
|
|
return k;
|
|
}
|