jdk/test/sun/security/provider/PolicyFile/Comparator.Comparator.Policy
author jlaskey
Fri, 20 May 2016 11:41:29 -0300
changeset 38445 0a88d86065f9
parent 2 90ce3da70b43
permissions -rw-r--r--
8156602: javac crashes again on Windows 32-bit with ClosedChannelException Reviewed-by: alanb


// should be granted
grant principal Comparator$PCompare1 "1" {
    permission java.util.PropertyPermission "foo", "read";
};

// should be granted
grant principal Comparator$PCompare1 "1",
    principal Comparator$PCompare2 "2" {
    permission java.util.PropertyPermission "bar", "read";
};

// should not be granted
grant principal Comparator$PCompare1 "1",
    principal Comparator$PCompare3 "3" {
    permission java.util.PropertyPermission "foobar", "read";
};