mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
handle case of class with no methods in classInitializer
This commit is contained in:
parent
753b90a811
commit
08d4fddbb4
@ -3223,14 +3223,17 @@ instanceOf(Thread* t, object class_, object o)
|
|||||||
object
|
object
|
||||||
classInitializer(Thread* t, object class_)
|
classInitializer(Thread* t, object class_)
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < arrayLength(t, classMethodTable(t, class_)); ++i) {
|
if (classMethodTable(t, class_)) {
|
||||||
object o = arrayBody(t, classMethodTable(t, class_), i);
|
for (unsigned i = 0; i < arrayLength(t, classMethodTable(t, class_)); ++i)
|
||||||
|
|
||||||
if (vm::strcmp(reinterpret_cast<const int8_t*>("<clinit>"),
|
|
||||||
&byteArrayBody(t, methodName(t, o), 0)) == 0)
|
|
||||||
{
|
{
|
||||||
return o;
|
object o = arrayBody(t, classMethodTable(t, class_), i);
|
||||||
}
|
|
||||||
|
if (vm::strcmp(reinterpret_cast<const int8_t*>("<clinit>"),
|
||||||
|
&byteArrayBody(t, methodName(t, o), 0)) == 0)
|
||||||
|
{
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user