From 81db6a7c20aa008c7edbb7377b4bc3a9afe91bb7 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 8 Aug 2014 19:55:37 -0700 Subject: ART: Do not check interface being subclass for member access When checking access to a protected member, do not try to see whether an interface is a subclass of the declaring class. Bug: 16904661 Change-Id: I3e1fa4ce9753e0a96633fff0fba807d72bc0b19d --- runtime/mirror/class.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/mirror/class.h') diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h index 1e254fad61..3c72b4625a 100644 --- a/runtime/mirror/class.h +++ b/runtime/mirror/class.h @@ -549,7 +549,7 @@ class MANAGED Class FINAL : public Object { } // Check for protected access from a sub-class, which may or may not be in the same package. if (member_flags & kAccProtected) { - if (this->IsSubClass(access_to)) { + if (!this->IsInterface() && this->IsSubClass(access_to)) { return true; } } -- cgit v1.2.3-59-g8ed1b