You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/06/13 05:36:58 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath/axes UnionPathIterator.java

sboag       01/06/12 20:36:58

  Modified:    java/src/org/apache/xpath/axes UnionPathIterator.java
  Log:
  Had to clone the iterators in cloneWithReset.  Ugh.
  
  Revision  Changes    Path
  1.17      +9 -0      xml-xalan/java/src/org/apache/xpath/axes/UnionPathIterator.java
  
  Index: UnionPathIterator.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/axes/UnionPathIterator.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- UnionPathIterator.java	2001/06/12 19:16:23	1.16
  +++ UnionPathIterator.java	2001/06/13 03:36:56	1.17
  @@ -431,6 +431,15 @@
     {
   
       UnionPathIterator clone = (UnionPathIterator) clone();
  +    
  +    // %OPT%
  +    // We have to make sure this is a deep clone.  (yet another perf issue...)
  +    int n = m_iterators.length;
  +
  +    for (int i = 0; i < n; i++)
  +    {
  +      m_iterators[i] = (DTMIterator)clone.m_iterators[i].clone();
  +    }
   
       clone.reset();
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org