Fixes to allow the verifier to process frameworks.
I've disabled the access checks for class and method, which need some
fixing, but nothing in frameworks should be failing in the verifier
anymore.
Change-Id: Ic16a8627b6a5b74b385a1f30dbc937c2ced910a4
diff --git a/src/object.cc b/src/object.cc
index e92c8c7..1af840f 100644
--- a/src/object.cc
+++ b/src/object.cc
@@ -1107,8 +1107,9 @@
}
// Is this field in any of this class' interfaces?
- for (size_t i = 0; i < c->NumInterfaces(); ++i) {
- Class* interface = c->GetInterface(i);
+ for (int32_t i = 0; i < c->GetIfTableCount(); ++i) {
+ InterfaceEntry* interface_entry = c->GetIfTable()->Get(i);
+ Class* interface = interface_entry->GetInterface();
f = interface->FindDeclaredStaticField(name, type);
if (f != NULL) {
return f;