[9] RFR: 8140470: javax/xml/crypto/dsig/SecurityManager/XMLDSigWithSecMgr.java failed with java.security.AccessControlException

Artem Smotrakov artem.smotrakov at oracle.com
Thu Dec 3 14:10:46 UTC 2015


Please review this small fix which updates XMLDSigWithSecMgr.java test 
to extend the default security policy instead of override. Please see 
details here:


The test could use "@run main/othervm/java.security.policy" action, but 
sometimes it may be better to enable a security manager during test 
execution to avoid granting many additional permissions if a test 
requires some setup. I tried to set "java.security.policy" system 
property just before enabling a security manager, and it seems to work fine.

Bug: https://bugs.openjdk.java.net/browse/JDK-8140470
Webrev: http://cr.openjdk.java.net/~asmotrak/8140470/webrev.00/


More information about the security-dev mailing list