1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/bindinfo/DomHandlerEx.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/bindinfo/DomHandlerEx.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2012, 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 @@ -34,6 +34,8 @@ 1.11 1.12 import com.sun.xml.internal.bind.marshaller.SAX2DOMEx; 1.13 1.14 +import com.sun.xml.internal.bind.v2.util.XmlFactory; 1.15 +import javax.xml.parsers.DocumentBuilderFactory; 1.16 import org.w3c.dom.Document; 1.17 import org.w3c.dom.Element; 1.18 import org.xml.sax.Locator; 1.19 @@ -76,12 +78,14 @@ 1.20 1.21 ResultImpl() { 1.22 try { 1.23 - s2d = new SAX2DOMEx(); 1.24 + DocumentBuilderFactory factory = XmlFactory.createDocumentBuilderFactory(false); // safe - only used for BI 1.25 + s2d = new SAX2DOMEx(factory); 1.26 } catch (ParserConfigurationException e) { 1.27 throw new AssertionError(e); // impossible 1.28 } 1.29 1.30 XMLFilterImpl f = new XMLFilterImpl() { 1.31 + @Override 1.32 public void setDocumentLocator(Locator locator) { 1.33 super.setDocumentLocator(locator); 1.34 location = new LocatorImpl(locator);