CODETOOLS-7900898: Provide jtreg policy option that doesn't override system policy
roger riggs
roger.riggs at oracle.com
Mon Aug 18 21:07:21 UTC 2014
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