CODETOOLS-7900898: Provide jtreg policy option that doesn't override system policy
Jonathan Gibbons
jonathan.gibbons at oracle.com
Mon Aug 18 21:18:10 UTC 2014
Roger,
The idea is that the new option is similar to and arguably better than
the one we have today.
The docs are in flux right now -- I pushed a bunch of changesets on
Friday that will hopefully break the log jam of doc updates.
-- Jon
On 08/18/2014 02:07 PM, roger riggs wrote:
> Hi,
>
> That behavior is pretty subtle and nearly invisible.
> Where will it be documented? Can you update the doc and --help at the
> same time?
>
> Roger
>
> On 8/18/2014 4:53 PM, Mandy Chung wrote:
>> jtreg /policy option overrides the system policy file and the test
>> policy file would have to duplicate the system policy grant statements
>> which is different than the default behavior when the test is run
>> standalone outside of jtreg with a security manager.
>>
>> This patch proposes to provide a new jtreg /java.security.policy option
>> such that
>> @run /java.security.policy=test.policy
>> - it will extend the default system policy
>>
>> @run /java.security.policy==test.policy
>> - this is equivalent to /policy option and it will override
>> the default system policy.
>>
>> This is the same way as how -Djava.security.policy system property
>> is specified and prepend "=" in front of the policy name specifies
>> to override the default system policy.
>>
>> Webrev:
>> http://cr.openjdk.java.net/~mchung/codetools/webrevs/7900898/
>>
>> I have verified this patch with running jtreg with a few jdk regression
>> tests updated to use this new option.
>>
>> Mandy
>>
>
More information about the jtreg-dev
mailing list