Re: UtilCache.utilCacheTable WeakHashMap incorrect usage

2009-11-22 Thread Adam Heath
Scott Gray wrote: > Umm... http://svn.ofbiz.org/viewcvs?rev=2202&view=rev :-) SELECT DISTINCT a.partyId, a.firstName, b.lastName FROM Person a JOIN FaceAttributes b ON a.partyId = b.partyId WHERE b.faceAttributeTypeId = 'EGG';

Re: UtilCache.utilCacheTable WeakHashMap incorrect usage

2009-11-22 Thread Scott Gray
Umm... http://svn.ofbiz.org/viewcvs?rev=2202&view=rev :-) Regards Scott On 23/11/2009, at 10:21 AM, Adam Heath wrote: UtilCache.utilCacheTable is a WeakHashMap. This class is defined to clear out entries when the *key* is only weakly referenced. Since the key in this case is a string, the us

UtilCache.utilCacheTable WeakHashMap incorrect usage

2009-11-22 Thread Adam Heath
UtilCache.utilCacheTable is a WeakHashMap. This class is defined to clear out entries when the *key* is only weakly referenced. Since the key in this case is a string, the usage really doesn't make sense. Either the cache item will be kept forever(if the cache is configured with a static string n