diff --git a/src/gnu.cpp b/src/gnu.cpp index 1aa77106b5..15aec5fd88 100644 --- a/src/gnu.cpp +++ b/src/gnu.cpp @@ -341,7 +341,7 @@ Avian_java_lang_VMRuntime_nativeLoad extern "C" JNIEXPORT int64_t JNICALL Avian_java_lang_Class_primitiveClass -(Thread* t, object, uintptr_t*); +(Thread*, object, uintptr_t*); extern "C" JNIEXPORT int64_t JNICALL Avian_java_lang_VMClassLoader_getPrimitiveClass @@ -350,6 +350,19 @@ Avian_java_lang_VMClassLoader_getPrimitiveClass return Avian_java_lang_Class_primitiveClass(t, 0, arguments); } +extern "C" JNIEXPORT int64_t JNICALL +Avian_java_lang_ClassLoader_defineClass +(Thread*, object, uintptr_t*); + +extern "C" JNIEXPORT int64_t JNICALL +Avian_java_lang_VMClassLoader_defineClass +(Thread* t, object, uintptr_t* arguments) +{ + uintptr_t args[] = { arguments[2], arguments[3], arguments[4] }; + + return Avian_java_lang_ClassLoader_defineClass(t, 0, args); +} + extern "C" JNIEXPORT int64_t JNICALL Avian_java_lang_System_identityHashCode (Thread*, object, uintptr_t*);