[9] RFR: 8079140: IgnoreAllErrorHandler should use doPrivileged when it reads system properties

Artem Smotrakov artem.smotrakov at oracle.com
Fri May 15 18:23:42 UTC 2015


Hello,

Please review this fix for 9.

If security manager is enabled, but "org.jcp.xml.dsig.secureValidation" 
property is off, IgnoreAllErrorHandler tries to read two system 
properties. If appropriate permissions are not granted, it fails with 
ExceptionInInitializerError.

Changes:
- updated IgnoreAllErrorHandler to read system properties in 
doPrivileged() method
- added "final" and @Override annotations
- added ErrorHandlerPermissions test

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

Artem



More information about the security-dev mailing list