Skip to content

HashCodeCacheKeyGenerator provides duplicate hashes #96

Description

@GoogleCodeExporter
What steps will reproduce the problem?
run this code:
    public static void main(String[] args) {
        HashCodeCacheKeyGenerator g = new HashCodeCacheKeyGenerator();
        System.out.println(g.generateKey(DynamicFormService.class, "getFieldByEntityIdAndTypeId", Field.class, 2, 19));
        System.out.println(g.generateKey(DynamicFormService.class, "getFieldByEntityIdAndTypeId", Field.class, 1, 50));
    }

What is the expected output? What do you see instead?
I suppose to see different hashes returned, but seeing the same for different 
set of parameters

What version of the product are you using? On what operating system?
ehcache-spring-annotations-1.2.0.jar 
ehcache-core-2.4.7.jar               
ehcache-web-2.0.4.jar                

Please provide any additional information below.
N/A

Original issue reported on code.google.com by usate...@gmail.com on 11 May 2012 at 10:38

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions