[jdom-interest] Bug: JDOMResult drops trailing text
Laurent Bihanic
laurent.bihanic at atosorigin.com
Tue Sep 30 08:35:03 PDT 2003
Roskowetz, Thorsten (empolis GT) wrote:
> I've found a bug in org.jdom.transform.JDOMResult (b9 and latest nightly
> snapshot)
> where - in case of a not well-formed result - trailing text is lost.
True
> Possible bugfix: Change method getResult() of private class FragmentHandler
> (part of JDOMResult) to something like this:
>
>
> public List getResult() {
> try {
> this.flushCharacters();
> }
> catch (SAXException ex) {
> // ignore
> }
> return (this.getDetachedContent(dummyRoot));
> }
That's probably the best patch.
Brad, can you check how this integrates with the refactored JDOMResult and
submit a patch?
Laurent
More information about the jdom-interest
mailing list