You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2010/03/17 14:57:42 UTC

svn commit: r924299 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/SoftReferenceSymbolTable.java

Author: mrglavas
Date: Wed Mar 17 13:57:41 2010
New Revision: 924299

URL: http://svn.apache.org/viewvc?rev=924299&view=rev
Log:
Fixing JIRA Issue #1423: http://issues.apache.org/jira/browse/XERCESJ-1423. On rehash() we need to clear the "prev" pointer when we add an entry at the head of a bucket. Our failure to do this could lead to an infinite loop later. Patch thanks to Anli Shundi (ashundi@tibco.com).

Modified:
    xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/SoftReferenceSymbolTable.java

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/SoftReferenceSymbolTable.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/SoftReferenceSymbolTable.java?rev=924299&r1=924298&r2=924299&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/SoftReferenceSymbolTable.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/SoftReferenceSymbolTable.java Wed Mar 17 13:57:41 2010
@@ -223,6 +223,7 @@ public class SoftReferenceSymbolTable ex
                         newTable[index].prev = e;
                     }
                     e.next = newTable[index];
+                    e.prev = null;
                     newTable[index] = e;
                 }
                 else {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org