summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libjvm-java.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libjvm-java.c b/src/libjvm-java.c
index cf13544..e07b339 100644
--- a/src/libjvm-java.c
+++ b/src/libjvm-java.c
@@ -85,6 +85,15 @@ java_lang_ClassLoader_findLibrary(JNIEnv *env, jobject object, va_list args)
}
jobject
+java_lang_ClassLoader_findClass(JNIEnv *env, jobject object, va_list args)
+{
+ assert(env && object);
+ jstring str = va_arg(args, jstring);
+ const char *utf = (*env)->GetStringUTFChars(env, str, NULL);
+ return (*env)->FindClass(env, utf);
+}
+
+jobject
java_lang_Class_getClassLoader(JNIEnv *env, jobject object)
{
assert(env && object);