summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2018-01-18 16:41:40 +0000
committerDavid Brazdil <dbrazdil@google.com>2018-01-24 14:21:50 +0000
commit11b67b201adb173d5f6f1b7a3fd337fda91e200f (patch)
tree90870c2ec271002ab36cb57484c185076e424f3a /compiler/optimizing/graph_visualizer.cc
parent8714435022757567aa078601f54244b8339bbed1 (diff)
Set up a test for hidden API enforcement
Submitting the test first for easier review. The expected outcome is that all currently class members are discoverable and accessible. Future CLs will implement the enforcement and change the expected outcome. The test itself has two JARs - parent declares classes and child tries to access them using reflection, JNI and static linking. The test driver ("Main" class) loads these JARs as follows: (a) both with class loaders (b) parent in boot class path, child with class loader (c) both in boot class path In (a), there should be no enforcement as the JAR does not have hidden API access flags (would not load otherwise). In situation(b), child should only be allowed to access parent's public, non-hidden members. And in (c), parent contains hidden API access flags but child is exempt from access checks. Bug: 64382372 Test: art/test.py -b -r -t 674-hiddenapi Change-Id: I19f5f7c30c0c7913703209817d36006b161c6778
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions