xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From il...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xpath/axes NodeSequence.java
Date Wed, 27 Nov 2002 15:24:29 GMT
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


Mime
View raw message