• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

Version : eh-cache 1.3

net.sf.ehcache.store.LfuMemoryStore$ElementMetadata calls directly Element.getKey() and not Element.getObjectKey().

The consequences are that you get a CacheException when using LFU policy with not serializable element key.

The fix for this bug would be to use getObjectKey() instead of getKey() Sourceforge Ticket ID: 1744643 - Opened By: nobody - 28 Jun 2007 08:04 UTC

Comments

Sourceforge Tracker 2009-09-21

Logged In: YES user_id=693320 Originator: NO

Hi

I have added a test to MemoryStoreTester to test each type of MemoryStore.

The issue only affected LfuMemoryStores. Thanks for reporting it.

The fix is in trunk and 1.4.

Greg Comment by: gregluck - 13 Aug 2007 07:31 UTC

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira