mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
Merge pull request #223 from dicej/findclass
initialize class in JNIEnv::FindClass
This commit is contained in:
commit
92f63b662e
@ -349,12 +349,16 @@ findClass(Thread* t, uintptr_t* arguments)
|
||||
|
||||
object caller = getCaller(t, 0);
|
||||
|
||||
return reinterpret_cast<uint64_t>
|
||||
(makeLocalReference
|
||||
(t, getJClass
|
||||
(t, resolveClass
|
||||
(t, caller ? classLoader(t, methodClass(t, caller))
|
||||
: root(t, Machine::AppLoader), n))));
|
||||
object c = resolveClass(t,
|
||||
caller ? classLoader(t, methodClass(t, caller))
|
||||
: root(t, Machine::AppLoader),
|
||||
n);
|
||||
|
||||
PROTECT(t, c);
|
||||
|
||||
initClass(t, c);
|
||||
|
||||
return reinterpret_cast<uint64_t>(makeLocalReference(t, getJClass(t, c)));
|
||||
}
|
||||
|
||||
jclass JNICALL
|
||||
|
Loading…
Reference in New Issue
Block a user