sboag       01/06/22 07:52:10

  Modified:    java/src/org/apache/xpath/objects Tag: Bxalan-j_2_2L
                        XNodeSet.java
  Log:
  always do a cloneWithReset, as it is safer.. Part of Norm Walsh
  variable problem fix.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.15.2.1  +4 -16     xml-xalan/java/src/org/apache/xpath/objects/XNodeSet.java
  
  Index: XNodeSet.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xpath/objects/XNodeSet.java,v
  retrieving revision 1.15
  retrieving revision 1.15.2.1
  diff -u -r1.15 -r1.15.2.1
  --- XNodeSet.java     2001/06/19 21:46:30     1.15
  +++ XNodeSet.java     2001/06/22 14:52:09     1.15.2.1
  @@ -378,25 +378,13 @@
      */
     public DTMIterator iter()
     {
  -
  -    // System.out.println("In XNodeSet.iter()");
  -    DTMIterator ns = (DTMIterator) m_obj;
  -
  -    // System.out.println("Is a ContextNodeList: "+ns);
  -    if (ns.isFresh())  // bit of a hack...
  +    try
       {
  -      return ns;
  +      return ((DTMIterator) m_obj).cloneWithReset();
       }
  -    else
  +    catch (CloneNotSupportedException cnse)
       {
  -      try
  -      {
  -        return ns.cloneWithReset();
  -      }
  -      catch (CloneNotSupportedException cnse)
  -      {
  -        throw new RuntimeException(cnse.getMessage());
  -      }
  +      throw new RuntimeException(cnse.getMessage());
       }
     }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to