Return-Path: Delivered-To: apmail-xml-xalan-cvs-archive@xml.apache.org Received: (qmail 12568 invoked by uid 500); 27 Nov 2002 15:24:30 -0000 Mailing-List: contact xalan-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: Delivered-To: mailing list xalan-cvs@xml.apache.org Received: (qmail 12557 invoked from network); 27 Nov 2002 15:24:29 -0000 Date: 27 Nov 2002 15:24:29 -0000 Message-ID: <20021127152429.41295.qmail@icarus.apache.org> From: ilene@apache.org To: xml-xalan-cvs@apache.org Subject: cvs commit: xml-xalan/java/src/org/apache/xpath/axes NodeSequence.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ilene 2002/11/27 07:24:29 Modified: java/src/org/apache/xpath/axes NodeSequence.java Log: Patch for bugzilla #14862. When NodeSequence wraps a mutable nodeset use the wrapped nodeset in getLength() method. Revision Changes Path 1.6 +2 -3 xml-xalan/java/src/org/apache/xpath/axes/NodeSequence.java Index: NodeSequence.java =================================================================== RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/axes/NodeSequence.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- NodeSequence.java 30 Oct 2002 21:21:06 -0000 1.5 +++ NodeSequence.java 27 Nov 2002 15:24:29 -0000 1.6 @@ -538,11 +538,10 @@ // If this NodeSequence wraps a mutable nodeset, then // m_last will not reflect the size of the nodeset if // it has been mutated... - if (m_iter instanceof NodeSetDTM) + if (null != m_obj && m_obj instanceof NodeSetDTM) { - return m_iter.getLength(); + return ((NodeSetDTM)m_obj).getLength(); } - if(-1 == m_last) { int pos = m_next; --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: xalan-cvs-help@xml.apache.org