mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
handle case of class with no methods in classInitializer
This commit is contained in:
parent
753b90a811
commit
08d4fddbb4
@ -3223,7 +3223,9 @@ 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_)) {
|
||||||
|
for (unsigned i = 0; i < arrayLength(t, classMethodTable(t, class_)); ++i)
|
||||||
|
{
|
||||||
object o = arrayBody(t, classMethodTable(t, class_), i);
|
object o = arrayBody(t, classMethodTable(t, class_), i);
|
||||||
|
|
||||||
if (vm::strcmp(reinterpret_cast<const int8_t*>("<clinit>"),
|
if (vm::strcmp(reinterpret_cast<const int8_t*>("<clinit>"),
|
||||||
@ -3232,6 +3234,7 @@ classInitializer(Thread* t, object class_)
|
|||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user