xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zong...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xml/dtm/ref/sax2dtm SAX2DTM2.java
Date Tue, 24 Feb 2004 11:40:44 GMT
zongaro     2004/02/24 03:40:44

  Modified:    java/src/org/apache/xml/dtm/ref/sax2dtm Tag: xslt20-compiled
                        SAX2DTM2.java
  Log:
  Part of patch for bug report 24985.  Ensure that m_size is set to zero in
  setStartNode methods of AncestorIterator and TypedAncestorIterator.  The way
  getLast() is implemented resulted in setStartNode being called twice in
  some circumstances, with the nodes from the second call being included as
  additional (though duplicate) ancestors.  Clearing m_size avoids that.
  
  Reviewed by Morris Kwan (mkwan () ca ! ibm ! com).
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.6.2.1   +2 -0      xml-xalan/java/src/org/apache/xml/dtm/ref/sax2dtm/SAX2DTM2.java
  
  Index: SAX2DTM2.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/sax2dtm/SAX2DTM2.java,v
  retrieving revision 1.6
  retrieving revision 1.6.2.1
  diff -u -r1.6 -r1.6.2.1
  --- SAX2DTM2.java	6 Sep 2003 01:15:13 -0000	1.6
  +++ SAX2DTM2.java	24 Feb 2004 11:40:44 -0000	1.6.2.1
  @@ -1329,6 +1329,7 @@
         if (_isRestartable)
         {
           int nodeID = makeNodeIdentity(node);
  +        m_size = 0;
           
           if (nodeID == DTM.NULL) {
             _currentNode = DTM.NULL;
  @@ -1455,6 +1456,7 @@
         if (_isRestartable)
         {
           int nodeID = makeNodeIdentity(node);
  +        m_size = 0;
           
           if (nodeID == DTM.NULL) {
             _currentNode = DTM.NULL;
  
  
  

---------------------------------------------------------------------
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