You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2007/10/17 16:33:35 UTC

svn commit: r585522 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java

Author: doogie
Date: Wed Oct 17 07:33:34 2007
New Revision: 585522

URL: http://svn.apache.org/viewvc?rev=585522&view=rev
Log:
getKeyFromMemory() wasn't incrementing currentIdx during the loop;
this means it would only ever be able to return the first key from
memory.  Resolves https://issues.apache.org/jira/browse/OFBIZ-1298.

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java?rev=585522&r1=585521&r2=585522&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/cache/CacheLineTable.java Wed Oct 17 07:33:34 2007
@@ -252,6 +252,7 @@
             if (currentIdx == index) {
                 return key;
             }
+            currentIdx++;
         }
         return null;
     }