commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34819] - [digester] NodeCreateRule failing with Kaffe JVM (Aelfred xml parser)
Date Sat, 18 Feb 2006 23:27:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34819>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34819





------- Additional Comments From skitching@apache.org  2006-02-19 00:27 -------
I'm testing now with Kaffe 1.1.6 (released september 2005) and things are
looking better. 

Currently, unit-test 
  SetNestedPropertiesRuleTestCase.testUnknownChildrenCausesException
is failing. This test ensures that an exception is thrown in the
SetNestedPropertiesRule. One side-effect is that an AnyChildRules instance is
left as the Rules object for the digester when the exception is thrown.

In Sun Java 1.5, ContentHandler.endDocument is *not* called when an endElement
method throws a SAXException, so the AnyChildRules instance causes no problems.

In Kaffe 1.1.6, ContentHandler.endDocument *is* called when the SAXException is
thrown. The endDocument method currently throws an exception because it tells
the digester's Rules object to clean up and the AnyChildRules object doesn't
support the necessary methods.

>From the javadoc for the org.sax.xml.ContentHandler class, it would appear that
Kaffe is right and Sun is wrong about the invocation of endDocument after a
SAXException. I'm going to file a bug against the Sun jdk, then think about the
best way to handle this in Digester.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message