sboag       01/01/31 20:25:41

  Modified:    java/src/org/apache/xpath/axes DescendantIterator.java
  Log:
  The m_lastFetched value needs to be set before the call to
  acceptNode (i.e. the predicate), otherwise the cloned itterator
  will not work correctly.  In response to bug report by
  "Timm, Sean" <[EMAIL PROTECTED]> 01/31/2001 01:48 PM.
  The bug caused //item[last()] to fail.
  
  Revision  Changes    Path
  1.8       +1 -0      
xml-xalan/java/src/org/apache/xpath/axes/DescendantIterator.java
  
  Index: DescendantIterator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xpath/axes/DescendantIterator.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DescendantIterator.java   2001/01/02 03:47:14     1.7
  +++ DescendantIterator.java   2001/02/01 04:25:41     1.8
  @@ -235,6 +235,7 @@
         {
           if(getSelf)
           {
  +          m_lastFetched = pos; // we have to do this for a clone in a 
predicate to work correctly.
             if(NodeFilter.FILTER_ACCEPT == acceptNode(pos))
             {
               next = pos;
  
  
  

Reply via email to