2007-03-08 Gary Benson <gbenson@redhat.com>
authorgary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Mar 2007 16:33:40 +0000 (16:33 +0000)
committergary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Mar 2007 16:33:40 +0000 (16:33 +0000)
PR classpath/30983:
* gnu/xml/dom/ls/DomLSParser.java (getInputSource):
Do not use the entity resolver to resolve the top-level document.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122700 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/classpath/ChangeLog.gcj
libjava/classpath/gnu/xml/dom/ls/DomLSParser.java
libjava/classpath/lib/gnu/xml/dom/ls/DomLSParser.class

index e5af879..315ac4d 100644 (file)
@@ -1,5 +1,12 @@
+2007-03-08  Gary Benson  <gbenson@redhat.com>
+
+       PR classpath/30983:
+       * gnu/xml/dom/ls/DomLSParser.java (getInputSource):
+       Do not use the entity resolver to resolve the top-level document.
+
 2007-03-07  Gary Benson  <gbenson@redhat.com>
 
+       PR classpath/30906:
        * resource/META-INF/services/org.w3c.dom.DOMImplementationSourceList:
        New file.
 
index 7ac4cc7..6bc069d 100644 (file)
@@ -363,22 +363,6 @@ public class DomLSParser
         source = new InputSource(in);
         source.setSystemId(systemId);
       }
-    if (source == null && entityResolver != null)
-      {
-        String publicId = input.getPublicId();
-        try
-          {
-            source = entityResolver.resolveEntity(publicId, systemId);
-          }
-        catch (SAXException e)
-          {
-            throw new DomLSException(LSException.PARSE_ERR, e);
-          } 
-        catch (IOException e)
-          {
-            throw new DomLSException(LSException.PARSE_ERR, e);
-          } 
-      }
     if (source == null)
       {
         URL url = null;
index 616257d..1740fbb 100644 (file)
Binary files a/libjava/classpath/lib/gnu/xml/dom/ls/DomLSParser.class and b/libjava/classpath/lib/gnu/xml/dom/ls/DomLSParser.class differ