mirror of
https://github.com/corda/corda.git
synced 2025-02-27 11:36:42 +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) {
|
||||
for (; b; b = classSuper(t, b)) {
|
||||
object itable = classInterfaceTable(t, b);
|
||||
for (unsigned i = 0; i < arrayLength(t, itable); i += 2) {
|
||||
if (arrayBody(t, itable, i) == a) {
|
||||
return true;
|
||||
if (itable) {
|
||||
for (unsigned i = 0; i < arrayLength(t, itable); i += 2) {
|
||||
if (arrayBody(t, itable, i) == a) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user