Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/XERCESJ-1007 Here is an overview of the issue: --------------------------------------------------------------------- Key: XERCESJ-1007 Summary: AbstractMethodError is not caught in DOMSerializerImpl.writeToString() and ... Type: Bug Status: Unassigned Priority: Major Project: Xerces2-J Components: Serialization Versions: 2.6.2 Assignee: Reporter: Yoon Kyung Koo Created: Mon, 6 Sep 2004 9:15 AM Updated: Mon, 6 Sep 2004 9:15 AM Environment: XML-XERCES CVS snapshot as of Sep. 7, 2004 jdk 1.4.2_04 windows 2000 sp4 Description: The DOMSerializerImpl uses reflection to check whether "getXmlVersion" method or "getInputEncoding", ... exists in the Document implementation class of some given dom node in the writeToString(), write(), writeToURI() methods. The problem is that when the DOM node is not a Xerces dom node then the checking line can throw an AbstractMethodError and we only catch Exception. I think that those "catch (Exception e)" should be changed with "catch (Throwable t)". current codes are... // this should run under JDK 1.1.8... try { getXmlVersion = fDocument.getClass().getMethod("getXmlVersion", new Class[] {}); if (getXmlVersion != null) { ver = (String) getXmlVersion.invoke(fDocument, (Object[]) null); } } catch (Exception e) { <- I think these are problems. // no way to test the version... // ignore the exception } --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
