8049514: FEATURE_SECURE_PROCESSING can not be turned off on a validator through SchemaFactory

Reviewed-by: lancea
This commit is contained in:
Joe Wang 2014-07-16 18:17:27 -07:00
parent 98bb3f44c2
commit 6f17bd944b

View File

@ -452,7 +452,8 @@ public final class XMLSchemaFactory extends SchemaFactory {
}
private void propagateFeatures(AbstractXMLSchema schema) {
schema.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, fSecurityManager != null);
schema.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING,
(fSecurityManager != null && fSecurityManager.isSecureProcessing()));
schema.setFeature(Constants.ORACLE_FEATURE_SERVICE_MECHANISM, fUseServicesMechanism);
String[] features = fXMLSchemaLoader.getRecognizedFeatures();
for (int i = 0; i < features.length; ++i) {