-
Bug
-
Resolution: Done
-
Critical
-
4.0.0.BETA2
-
None
-
None
LRUDataContainer has issues with looping when inside the loop there's a get() call on the data container. Example from LRUDataContainerTest:
public void testPutAndLoop() {
for (int i = 0; i < 10; i++) dc.put(i, "value", -1, -1);
int i = 0;
for (Object key : dc.keySet())
assert i == 10;
}
Currently, the test fails cos the final value of i is 1. This means that the loop only runs once when it should have run 10 times.