diff options
author | David Brazdil <dbrazdil@google.com> | 2018-03-12 18:01:18 +0000 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2018-03-16 13:38:00 +0000 |
commit | 6ca80d2ed68857c75002038f52a5d054c30619ad (patch) | |
tree | 93a185d52eeeacef7c7daca9d6f65dc6cbf7055e /test/ProfileTestMultiDex/Second.java | |
parent | 71ec81b03acaf43c2629cb963d13d0c55808f0ed (diff) |
Refactor enforcement of hidden API policy when linking
Hidden API enforcement when linking was sub-optimal for two reasons:
a) it was based on Class::CanAccessMember and would throw
IllegalAccessError instead of NoSuchMethodError/NoSuchFieldError, and
b) no warnings were printed in the code path.
This patch moves the checks into ClassLinker's resolution routines and
uses a code path which prints warning.
Bug: 64382372
Test: art/test.py -r -t 674-hiddenapi
Change-Id: I8a0fbdca58ce5803c1588b644a3e627a0a9a6504
(cherry picked from commit 8ce3bfaf1da2139a70b67e6b53c0110489801d40)
Diffstat (limited to 'test/ProfileTestMultiDex/Second.java')
0 files changed, 0 insertions, 0 deletions