mmidy 01/11/02 13:47:16
Modified: java/src/org/apache/xpath/objects XStringForFSB.java
Log:
Bugzilla 4396: Defaulting to the super hashCode(). This causes us to create
a string, but at this point this only seems to get called in key processing.
Maybe we can live with it?
Revision Changes Path
1.8 +9 -2
xml-xalan/java/src/org/apache/xpath/objects/XStringForFSB.java
Index: XStringForFSB.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xpath/objects/XStringForFSB.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XStringForFSB.java 2001/10/17 19:14:26 1.7
+++ XStringForFSB.java 2001/11/02 21:47:15 1.8
@@ -593,7 +593,13 @@
*/
public int hashCode()
{
-
+ // Commenting this out because in JDK1.1.8 and VJ++
+ // we don't match XMLStrings. Defaulting to the super
+ // causes us to create a string, but at this point
+ // this only seems to get called in key processing.
+ // Maybe we can live with it?
+
+/*
int h = m_hash;
if (h == 0)
@@ -611,8 +617,9 @@
m_hash = h;
}
+ */
- return h;
+ return super.hashCode(); // h;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]