implement JVM_GetSystemPackages stub

This commit is contained in:
Joel Dice 2011-03-31 19:00:42 -06:00
parent 916e6787de
commit 384682431a

View File

@ -3128,8 +3128,21 @@ EXPORT(JVM_GetSystemPackage)(Thread*, jstring)
return 0;
}
uint64_t
jvmGetSystemPackages(Thread* t, uintptr_t*)
{
return reinterpret_cast<uintptr_t>
(makeLocalReference
(t, makeObjectArray
(t, resolveClass
(t, root(t, Machine::BootLoader), "java/lang/Package"), 0)));
}
extern "C" JNIEXPORT jobjectArray JNICALL
EXPORT(JVM_GetSystemPackages)(Thread*) { abort(); }
EXPORT(JVM_GetSystemPackages)(Thread* t)
{
return reinterpret_cast<jobjectArray>(run(t, jvmGetSystemPackages, 0));
}
extern "C" JNIEXPORT jobject JNICALL
EXPORT(JVM_AllocateNewObject)(Thread*, jobject, jclass,