OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f42a5b
)
Fix access checks for app compatibility.
author
Jeff Hao
<jeffhao@google.com>
Tue, 1 Apr 2014 17:58:29 +0000
(10:58 -0700)
committer
Jeff Hao
<jeffhao@google.com>
Tue, 1 Apr 2014 17:58:29 +0000
(10:58 -0700)
Change-Id: I3191e5e92d30e9bee24051fd305296ddcf143e18
runtime/reflection.cc
patch
|
blob
|
history
diff --git
a/runtime/reflection.cc
b/runtime/reflection.cc
index
6ed61f6
..
a83f521
100644
(file)
--- a/
runtime/reflection.cc
+++ b/
runtime/reflection.cc
@@
-799,8
+799,7
@@
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) && declaring_class->IsPublic()) ||
- caller_class == declaring_class) {
+ if (((access_flags & kAccPublic) != 0) || caller_class == declaring_class) {
return true;
}
if ((access_flags & kAccPrivate) != 0) {