This is the implementation of the JEP 140 feature for a limited privilege form of doPrivileged(). A test will be added in an updated webrev within the next day. The JEP is: http://openjdk.java.net/jeps/140 The webrev is: http://cr.openjdk.java.net/~jdn/8014097/webrev.0/