FSF GCC merge 02/23/03
[official-gcc.git] / libjava / testsuite / libjava.jni / findclass.c
blob1a58a55fee477e81f9309b3eef48c19604e61ea3
1 #include <stdlib.h>
3 #include <findclass.h>
5 JNIEXPORT jclass JNICALL
6 Java_findclass_doit (JNIEnv *env, jclass klass, jstring name)
8 const char *buf = (*env)->GetStringUTFChars (env, name, NULL);
9 jclass k = (*env)->FindClass (env, buf);
10 (*env)->ReleaseStringUTFChars (env, name, buf);
11 return k;