You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Neeraj Bajaj <ne...@sun.com> on 2003/05/05 13:02:16 UTC
Re: Patch for bug 19211
Hi Venu,
I have committed your patch.
Thanks
Neeraj
>
> Please find patch for bug 19211 attached .
>
> Regards
> venu
>
> ------------------------------------------------------------------------
> Index: AbstractDOMParser.java
> ===================================================================
> RCS file: /home/cvspublic/xml-xerces/java/src/org/apache/xerces/parsers/AbstractDOMParser.java,v
> retrieving revision 1.84
> diff -u -r1.84 AbstractDOMParser.java
> --- AbstractDOMParser.java 24 Mar 2003 14:28:44 -0000 1.84
> +++ AbstractDOMParser.java 24 Apr 2003 08:40:08 -0000
> @@ -1586,7 +1586,12 @@
> prevIndex = childIndex;
> childIndex = sibling;
> }
> - fDeferredDocumentImpl.setAsLastChild(parentIndex, lastChild);
> + if(lastChild != -1)
> + fDeferredDocumentImpl.setAsLastChild(parentIndex, lastChild);
> + else{
> + sibling = fDeferredDocumentImpl.getRealPrevSibling(prevIndex, false);
> + fDeferredDocumentImpl.setAsLastChild(parentIndex, sibling);
> + }
> fCurrentNodeIndex = parentIndex;
> }
> fDeferredEntityDecl = -1;
>
> ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
-- Neeraj