sboag 00/07/30 19:10:55
Modified: src/org/apache/xalan/xpath/dtm DTMProxy.java
Log:
Patch attributed to Gary L Peskin <[EMAIL PROTECTED]>, two DTMProxy objects
compare equal if they
refer to the same node number in different documents (as can happen when
using the document() function). This code corrects that problem.return
Revision Changes Path
1.12 +3 -1 xml-xalan/src/org/apache/xalan/xpath/dtm/DTMProxy.java
Index: DTMProxy.java
===================================================================
RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xpath/dtm/DTMProxy.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- DTMProxy.java 2000/07/21 14:46:22 1.11
+++ DTMProxy.java 2000/07/31 02:10:55 1.12
@@ -117,7 +117,9 @@
try
{
DTMProxy dtmp = (DTMProxy)node;
- return (dtmp.node == this.node);
+ // return (dtmp.node == this.node);
+ // Patch attributed to Gary L Peskin <[EMAIL PROTECTED]>
+ return (dtmp.node == this.node) && (dtmp.dtm == this.dtm);
}
catch(ClassCastException cce)
{