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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
// should be granted
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
grant principal Comparator$PCompare1 "1" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
    permission java.util.PropertyPermission "foo", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
// should be granted
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
grant principal Comparator$PCompare1 "1",
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
    principal Comparator$PCompare2 "2" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
    permission java.util.PropertyPermission "bar", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
// should not be granted
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
grant principal Comparator$PCompare1 "1",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
    principal Comparator$PCompare3 "3" {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
    permission java.util.PropertyPermission "foobar", "read";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18