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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

doogie-3
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;
     }