svn commit: r585650 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java

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

svn commit: r585650 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java

doogie-3
Author: doogie
Date: Wed Oct 17 12:54:32 2007
New Revision: 585650

URL: http://svn.apache.org/viewvc?rev=585650&view=rev
Log:
The only public hasExpired method on UtilCache takes an Object; since
a CacheLine is passed, however, UtilCache never really finds the
correct value to check for expiration.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1296

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java?rev=585650&r1=585649&r2=585650&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/cache/EntityCache.java Wed Oct 17 12:54:32 2007
@@ -67,7 +67,7 @@
         Iterator it = entityCache.getCacheLineValues().iterator();
         while (it.hasNext()) {
             CacheLine line = (CacheLine) it.next();
-            if (entityCache.hasExpired(line)) continue;
+            if (line.hasExpired()) continue;
             GenericEntity entity = (GenericEntity) line.getValue();
             if (entity == null) continue;
             if (condition.entityMatches(entity)) it.remove();