summaryrefslogtreecommitdiff
path: root/runtime/mirror/class.h
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2014-08-08 19:55:37 -0700
committer Andreas Gampe <agampe@google.com> 2014-08-08 20:44:20 -0700
commit81db6a7c20aa008c7edbb7377b4bc3a9afe91bb7 (patch)
tree8d01a5af133afb621f7d53b8b300707afe79adbc /runtime/mirror/class.h
parent4ef12f5b0e26c6016c87866f6a33da5ed8e98d74 (diff)
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
Diffstat (limited to 'runtime/mirror/class.h')
-rw-r--r--runtime/mirror/class.h2
1 files changed, 1 insertions, 1 deletions
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;
}
}