diff options
author | Gary Benson <gbenson@redhat.com> | 2007-03-08 16:33:40 +0000 |
---|---|---|
committer | Gary Benson <gary@gcc.gnu.org> | 2007-03-08 16:33:40 +0000 |
commit | 8c67ec7a88047289f5318c2bb03338899b8a3bd5 (patch) | |
tree | ceca92a56a008ebf21f133bf62e70c940ea7fa73 /libjava/classpath/gnu/xml/dom | |
parent | 56bedf420fd15955cfa194ead87f2beaedac9509 (diff) | |
download | gcc-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.java | 16 |
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; |