I am using JCS with Hibernate for caching, and I came across a problem.
When JCS encounters an object whose MaxLifeSeconds has been exceeded, I
am getting a ClassCastException. This is actually being thrown by the
net.sf.hibernate.cache.QueryKey, but I think the root of the problem is
the hashCode method of the CacheElement class:
public int hashCode()
{
return key.hashCode();
}
Why does it do this? The problem happens when there is a QueryKey object
*and* and CacheElement object that wraps a QueryKey object both in the
cache (Hashtable). This doesn't seem right. Any thoughts?
Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]