summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-08-09 04:41:19 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-08-09 00:45:41 +0000
commit7493a5be0b05a27de80974a8a0bbaff07bf9909f (patch)
tree1fa0adf5a27a69417b4a431ccbd8fbe68ed43aed /runtime
parentf0d54278d02a69e659432fa1cf2e8a8b388565da (diff)
parent13f8a168d484d747e07154a9357bd72d5b04c379 (diff)
downloadart-7493a5be0b05a27de80974a8a0bbaff07bf9909f.zip
art-7493a5be0b05a27de80974a8a0bbaff07bf9909f.tar.gz
art-7493a5be0b05a27de80974a8a0bbaff07bf9909f.tar.bz2
Merge "ART: Do not check interface being subclass for member access"
Diffstat (limited to 'runtime')
-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 519685a..2a3f104 100644
--- a/runtime/mirror/class.h
+++ b/runtime/mirror/class.h
@@ -555,7 +555,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;
}
}