Hi, Please review a test to verify access control of looking up fields using a VarHandle:
http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8152645-VH-access-control/webrev/ <http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8152645-VH-access-control/webrev/> For completeness i also added tests for MH as i could not find any such existing tests. Further follow on work might be to test lookup to fields across module boundaries. Paul.