mkwan 2003/06/25 11:17:39
Modified: java/src/org/apache/xml/dtm/ref ExpandedNameTable.java
Log:
Fix for problem in ExpandedNameTable (bugzilla 21087).
Revision Changes Path
1.11 +5 -1 xml-xalan/java/src/org/apache/xml/dtm/ref/ExpandedNameTable.java
Index: ExpandedNameTable.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/ExpandedNameTable.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ExpandedNameTable.java 1 Apr 2003 19:14:05 -0000 1.10
+++ ExpandedNameTable.java 25 Jun 2003 18:17:39 -0000 1.11
@@ -216,8 +216,12 @@
}
// Expand the internal HashEntry array if necessary.
- if (m_nextType > m_threshold)
+ if (m_nextType > m_threshold) {
rehash();
+ index = hash % m_capacity;
+ if (index < 0)
+ index = -index;
+ }
// Create a new ExtendedType object
ExtendedType newET = new ExtendedType(type, namespace, localName, hash);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]