google-code-export / ehcache-spring-annotations

Automatically exported from code.google.com/p/ehcache-spring-annotations
0 stars 0 forks source link

Enum hashCode handling #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Special handling for Enums should be added since hashCode on an Enum always
returns the Object hashCode. This will work within a single JVM but fail
cross-JVM instances during replication or using a disk store between restarts.

Original issue reported on code.google.com by eric.dalquist on 16 Apr 2010 at 1:56

GoogleCodeExporter commented 9 years ago
Fixed for key generators that use hash code data by using new Object[] {
enum.getClass().getName(), enum.name()} to generate the hash code.

Original comment by eric.dalquist on 16 Apr 2010 at 5:19

GoogleCodeExporter commented 9 years ago

Original comment by eric.dalquist on 16 Apr 2010 at 5:19