Uploaded image for project: 'Spring Modules'
  1. Spring Modules
  2. MOD-478

Inconsistent key generation by HashCodeCacheKeyGenerator across VM restarts

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9
    • None
    • CACHE
    • None

    Description

      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.

      Attachments

        Activity

          People

            yatesco Colin Yates
            pfishero Philip Fisher-Ogden
            Archiver:
            tmarshall Trevor Marshall

            Dates

              Created:
              Updated:
              Archived: