aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/gnu/xml/dom
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2007-03-08 16:33:40 +0000
committerGary Benson <gary@gcc.gnu.org>2007-03-08 16:33:40 +0000
commit8c67ec7a88047289f5318c2bb03338899b8a3bd5 (patch)
treececa92a56a008ebf21f133bf62e70c940ea7fa73 /libjava/classpath/gnu/xml/dom
parent56bedf420fd15955cfa194ead87f2beaedac9509 (diff)
downloadgcc-8c67ec7a88047289f5318c2bb03338899b8a3bd5.zip
gcc-8c67ec7a88047289f5318c2bb03338899b8a3bd5.tar.gz
gcc-8c67ec7a88047289f5318c2bb03338899b8a3bd5.tar.bz2
re PR xml/30983 (DocumentBuilder.parse throws exception)
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. From-SVN: r122700
Diffstat (limited to 'libjava/classpath/gnu/xml/dom')
-rw-r--r--libjava/classpath/gnu/xml/dom/ls/DomLSParser.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/libjava/classpath/gnu/xml/dom/ls/DomLSParser.java b/libjava/classpath/gnu/xml/dom/ls/DomLSParser.java
index 7ac4cc7..6bc069d 100644
--- a/libjava/classpath/gnu/xml/dom/ls/DomLSParser.java
+++ b/libjava/classpath/gnu/xml/dom/ls/DomLSParser.java
@@ -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;