diff options
author | Jeff Hao <jeffhao@google.com> | 2014-04-01 18:04:24 +0000 |
---|---|---|
committer | Jeff Hao <jeffhao@google.com> | 2014-04-01 18:04:24 +0000 |
commit | dd9699a536e5d0c1a10b4bdb37b88312930793e8 (patch) | |
tree | 39a7c5c3d6ed49561058826a4c52063090684c5a /runtime/reflection.cc | |
parent | b59b2c8dbdea2a6a3086378f2cf65adc9bc282cd (diff) | |
download | art-dd9699a536e5d0c1a10b4bdb37b88312930793e8.zip art-dd9699a536e5d0c1a10b4bdb37b88312930793e8.tar.gz art-dd9699a536e5d0c1a10b4bdb37b88312930793e8.tar.bz2 |
Revert "Fix access checks for app compatibility."
This reverts commit b59b2c8dbdea2a6a3086378f2cf65adc9bc282cd.
Change-Id: I718658b8450a5ce6249df317b635f63356b1ce3c
Diffstat (limited to 'runtime/reflection.cc')
-rw-r--r-- | runtime/reflection.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/reflection.cc b/runtime/reflection.cc index a83f521..6ed61f6 100644 --- a/runtime/reflection.cc +++ b/runtime/reflection.cc @@ -799,7 +799,8 @@ bool VerifyAccess(mirror::Object* obj, mirror::Class* declaring_class, uint32_t visitor.WalkStack(); mirror::Class* caller_class = visitor.caller->GetDeclaringClass(); - if (((access_flags & kAccPublic) != 0) || caller_class == declaring_class) { + if ((((access_flags & kAccPublic) != 0) && declaring_class->IsPublic()) || + caller_class == declaring_class) { return true; } if ((access_flags & kAccPrivate) != 0) { |