mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
implement JVM_GetSystemPackages stub
This commit is contained in:
parent
916e6787de
commit
384682431a
@ -3128,8 +3128,21 @@ EXPORT(JVM_GetSystemPackage)(Thread*, jstring)
|
|||||||
return 0;
|
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
|
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
|
extern "C" JNIEXPORT jobject JNICALL
|
||||||
EXPORT(JVM_AllocateNewObject)(Thread*, jobject, jclass,
|
EXPORT(JVM_AllocateNewObject)(Thread*, jobject, jclass,
|
||||||
|
Loading…
Reference in New Issue
Block a user