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

Inconsistent key generation by HashCodeCacheKeyGenerator across VM restarts

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9
    • Fix Version/s: None
    • Component/s: CACHE
    • Labels:
      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

            • Assignee:
              yatesco Colin Yates
              Reporter:
              pfishero Philip Fisher-Ogden
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: