mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
keep track of original class in resolveField so we can throw an exception with a useful message
This commit is contained in:
parent
6f839323a7
commit
25ca40931d
@ -3391,8 +3391,11 @@ resolveField(Thread* t, object class_, const char* fieldName,
|
|||||||
|
|
||||||
object field = findInInterfaces(t, class_, name, spec, findFieldInClass);
|
object field = findInInterfaces(t, class_, name, spec, findFieldInClass);
|
||||||
|
|
||||||
for (; class_ != 0 and field == 0; class_ = classSuper(t, class_)) {
|
object c = class_;
|
||||||
field = findFieldInClass(t, class_, name, spec);
|
PROTECT(t, c);
|
||||||
|
|
||||||
|
for (; c != 0 and field == 0; c = classSuper(t, c)) {
|
||||||
|
field = findFieldInClass(t, c, name, spec);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t->exception == 0 and field == 0) {
|
if (t->exception == 0 and field == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user