RFR 8050402: Tests to check for use of policy files

Sean Mullan sean.mullan at oracle.com
Wed Jul 29 18:01:23 UTC 2015

Hi Amanda,

Rather than exec-ing java from within the test, I think it would be 
better if you used jtreg @run options to do that. For example:

@run main/java.security.policy=ExtensiblePolicyTest1.policy 
ExtensiblePolicyTest1 false
@run main/java.security.policy=ExtensiblePolicyTest2.policy 
ExtensiblePolicyTest1 true


I think this would lead to a more robust test and eliminate some overhead.


On 07/14/2015 03:15 PM, Amanda Jiang wrote:
> Hi,
> Please review a new test which checks Policy is extensible with user
> defined permissions.
> Bug: https://bugs.openjdk.java.net/browse/JDK-8050402
> Webrev: http://cr.openjdk.java.net/~amjiang/8050402/webrev.01/
> Thanks,
> Amanda

More information about the security-dev mailing list