Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2076034 | 5.0 | Ramesh Mandava | P3 | Resolved | Fixed | b30 |
Name: apR10229 Date: 10/17/2003
Filed By : SPB JCK team (###@###.###)
JDK : java full version "1.5.0-beta-b23"
JCK : 1.5
Platform[s] : Linux
switch/Mode :
JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
Failing Test [s] : N/A
Specification excerpt:
======================
--------- J2SE API spec v.1.5 ---------
...
public void abort()
Abort the loading of the document that is currently being loaded by the DOMParser. If the DOMParser is currently not busy, a call to this method does nothing.
...
---------- end-of-excerpt ---------------
Problem description
===================
Method org.w3c.dom.ls.DOMParser.abort() called when parser isn't busy throws RuntimeException.
Minimized test:
===============
------- Test.java -------
import java.io.*;
import org.w3c.dom.ls.*;
import org.w3c.dom.*;
import javax.xml.parsers.*;
public class Test {
public static void main(String[] argv) {
Document doc = null;
try {
DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
doc = parser.parse(new StringBufferInputStream("<?xml version='1.0'?><ROOT/>"));
} catch (Throwable e) {
e.printStackTrace();
}
DOMImplementation impl = doc.getImplementation();
DOMImplementationLS implLS = (DOMImplementationLS) impl.getFeature("LS","3.0");
DOMParser parser = implLS.createDOMParser(DOMImplementationLS.MODE_SYNCHRONOUS,null);
parser.abort();
}
}
------- end-of-Test.java -------
Minimized test output:
======================
<pav@hammer(pts/6).258> java Test
Exception in thread "main" java.lang.RuntimeException
at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.abort(AbstractDOMParser.java:2550)
at Test.main(Test.java:19)
JCK test source location:
==========================
/java/re/jck/1.5/promoted/latest/JCK-runtime-15/tests
Specific Machine Info:
=====================
Linux hammer 2.4.21 #1 Wed Jun 25 20:18:22 MSD 2003 i686 unknown
======================================================================
- backported by
-
JDK-2076034 Method DOMParser.abort() throws RuntimeException
-
- Resolved
-