mirror of
https://github.com/corda/corda.git
synced 2025-02-27 19:46:38 +00:00
properly handle classes with no interface table in isAssignableFrom()
This commit is contained in:
parent
57d57ff7bf
commit
a1caf06955
@ -1694,9 +1694,11 @@ isAssignableFrom(Thread* t, object a, object b)
|
|||||||
if (classFlags(t, a) & ACC_INTERFACE) {
|
if (classFlags(t, a) & ACC_INTERFACE) {
|
||||||
for (; b; b = classSuper(t, b)) {
|
for (; b; b = classSuper(t, b)) {
|
||||||
object itable = classInterfaceTable(t, b);
|
object itable = classInterfaceTable(t, b);
|
||||||
for (unsigned i = 0; i < arrayLength(t, itable); i += 2) {
|
if (itable) {
|
||||||
if (arrayBody(t, itable, i) == a) {
|
for (unsigned i = 0; i < arrayLength(t, itable); i += 2) {
|
||||||
return true;
|
if (arrayBody(t, itable, i) == a) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user