Issue Details (XML | Word | Printable)

Key: MOD-478
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Colin Yates
Reporter: Philip Fisher-Ogden
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Spring Modules

Inconsistent key generation by HashCodeCacheKeyGenerator across VM restarts

Created: 31/Jul/08 03:58 PM   Updated: 01/Apr/09 08:59 AM
Component/s: CACHE
Affects Version/s: 0.9
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
The HashCodeKeyGenerator class is producing inconsistent key values across VM restarts due to its use of:
(line 74) hashCodeCalculator.append(System.identityHashCode(method));

When running in Sun's Java 1.6.0_06 32-bit linux JVM, System.identityHashCode(method) is returning inconsistent values for the same method between two different runs of the JVM. The differing values means that none of the persisted (on disk) objects from the previous VM run are being matched up with their semantically identical objects in the next VM run.

Note: I am using Ehcache as the caching implementation.

Sort Order: Ascending order - Click to sort in descending order
No changes have yet been made on this issue.