I never thought much about hash codes of Java enumeration constants, but https://4comprehension.c... set me straight. Turns out enum hash codes are not stable, so serializing them as map keys will not work. Remedy: EnumMap!
0 reposts1 like
I never thought much about hash codes of Java enumeration constants, but https://4comprehension.c... set me straight. Turns out enum hash codes are not stable, so serializing them as map keys will not work. Remedy: EnumMap!
0 reposts1 like
No replies yet.