mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix static field lookup from interfaces
This commit is contained in:
parent
025cf59bb6
commit
ac988f7a0d
@ -2598,12 +2598,14 @@ findInHierarchy(Thread* t, object class_, object name, object spec,
|
|||||||
PROTECT(t, class_);
|
PROTECT(t, class_);
|
||||||
|
|
||||||
object o = 0;
|
object o = 0;
|
||||||
if (classFlags(t, class_) & ACC_INTERFACE) {
|
if ((classFlags(t, class_) & ACC_INTERFACE)
|
||||||
if (classVirtualTable(t, class_)) {
|
and classVirtualTable(t, class_))
|
||||||
o = findInTable
|
{
|
||||||
(t, classVirtualTable(t, class_), name, spec, methodName, methodSpec);
|
o = findInTable
|
||||||
}
|
(t, classVirtualTable(t, class_), name, spec, methodName, methodSpec);
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (o == 0) {
|
||||||
for (; o == 0 and class_; class_ = classSuper(t, class_)) {
|
for (; o == 0 and class_; class_ = classSuper(t, class_)) {
|
||||||
o = find(t, class_, name, spec);
|
o = find(t, class_, name, spec);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user