src/share/jaxws_classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.java

changeset 397
b99d7e355d4b
parent 368
0989ad8c0860
child 408
b0610cd08440
     1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.java	Thu Aug 08 10:10:38 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.java	Fri Aug 23 09:57:21 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -72,6 +72,8 @@
    1.11  import java.util.logging.Level;
    1.12  import java.util.logging.Logger;
    1.13  
    1.14 +import static com.sun.xml.internal.ws.util.xml.XmlUtil.allowFileAccess;
    1.15 +
    1.16  /**
    1.17   * {@link Tube} that does the schema validation.
    1.18   *
    1.19 @@ -90,7 +92,7 @@
    1.20          super(next);
    1.21          this.binding = binding;
    1.22          feature = binding.getFeature(SchemaValidationFeature.class);
    1.23 -        sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    1.24 +        sf = allowFileAccess(SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI), false);
    1.25      }
    1.26  
    1.27      protected AbstractSchemaValidationTube(AbstractSchemaValidationTube that, TubeCloner cloner) {

mercurial