1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/dtd/bindinfo/DOMBuilder.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/dtd/bindinfo/DOMBuilder.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 @@ -29,6 +29,7 @@ 1.11 1.12 import com.sun.xml.internal.bind.marshaller.SAX2DOMEx; 1.13 1.14 +import javax.xml.parsers.DocumentBuilderFactory; 1.15 import org.xml.sax.Attributes; 1.16 import org.xml.sax.Locator; 1.17 1.18 @@ -38,14 +39,17 @@ 1.19 final class DOMBuilder extends SAX2DOMEx { 1.20 private Locator locator; 1.21 1.22 - public DOMBuilder() throws ParserConfigurationException { 1.23 + public DOMBuilder(DocumentBuilderFactory f) throws ParserConfigurationException { 1.24 + super(f); 1.25 } 1.26 1.27 + @Override 1.28 public void setDocumentLocator(Locator locator) { 1.29 super.setDocumentLocator(locator); 1.30 this.locator = locator; 1.31 } 1.32 1.33 + @Override 1.34 public void startElement(String namespace, String localName, String qName, Attributes attrs) { 1.35 super.startElement(namespace, localName, qName, attrs); 1.36 DOMLocator.setLocationInfo(getCurrentElement(),locator);