sboag 01/06/21 21:35:09
Modified: java/src/org/apache/xpath/axes LocPathIterator.java
Log:
In setCacheNodes, don't replace the current m_cachedNodes if
it is non-null. This fixes a bug with the NodeIterator/NodeSet
adapters.
Revision Changes Path
1.27 +4 -1 xml-xalan/java/src/org/apache/xpath/axes/LocPathIterator.java
Index: LocPathIterator.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/axes/LocPathIterator.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- LocPathIterator.java 2001/06/15 05:15:31 1.26
+++ LocPathIterator.java 2001/06/22 04:35:06 1.27
@@ -394,7 +394,10 @@
{
if (b)
- m_cachedNodes = new NodeSetDTM();
+ {
+ if(null == m_cachedNodes)
+ m_cachedNodes = new NodeSetDTM();
+ }
else
m_cachedNodes = null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]