summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver_test.cc
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2019-02-28 18:45:15 +0000
committerDavid Brazdil <dbrazdil@google.com>2019-03-04 10:09:52 +0000
commit6a1dab4184b8048209cdbebac5482393475e9b76 (patch)
tree809f7a486e0f11d25d01afd67b750164bd95bd9a /compiler/driver/compiler_driver_test.cc
parentd8e040145be0b8e240aef0745651cc14bcacdb9d (diff)
Fix handling of proxy classes in hidden_api.h
Inspecting proxy classes with reflection/JNI could result in an ART crash because hiddenapi::detail::GetDexFlags() assumed that all classes have a class def index and can be iterated over. This actually revealed a more general issue with proxy classes. This patch replaces a proxy method with the interface method at the beginning of ShouldDenyAccessToMember. This takes care of all proxy methods and will instead look at hidden API flags of the interface methods. What's left is proxy fields - both synthetic implementation details. Special case those and assign to greylist for now. Bug: 124218696 Test: art/test.py -r -t 691-hiddenapi-proxy Change-Id: I36c961cd4ffb196641db162818a0f9659aed8a32
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
0 files changed, 0 insertions, 0 deletions