diff options
author | David Brazdil <dbrazdil@google.com> | 2018-03-12 18:01:18 +0000 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2018-03-15 12:54:27 +0000 |
commit | 8ce3bfaf1da2139a70b67e6b53c0110489801d40 (patch) | |
tree | 40c163ceb6a90246e360731310169604fd809ab7 /test/ProfileTestMultiDex/Second.java | |
parent | 722093c305de5646759318fdeedc022c08a6723c (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
Diffstat (limited to 'test/ProfileTestMultiDex/Second.java')
0 files changed, 0 insertions, 0 deletions