Allow Object to match as interface class target.
Change-Id: Ie99746c8d13aed63507e5c90dcef922f2caba701
diff --git a/src/dex_verifier.cc b/src/dex_verifier.cc
index 8793c95..9f66250 100644
--- a/src/dex_verifier.cc
+++ b/src/dex_verifier.cc
@@ -2481,7 +2481,7 @@
if (failure_ == VERIFY_ERROR_NONE) {
if (abs_method != NULL) {
Class* called_interface = abs_method->GetDeclaringClass();
- if (!called_interface->IsInterface()) {
+ if (!called_interface->IsInterface() && !called_interface->IsObjectClass()) {
Fail(VERIFY_ERROR_CLASS_CHANGE) << "expected interface class in invoke-interface '"
<< PrettyMethod(abs_method) << "'";
break;