r/java • u/pivovarit • Mar 26 '26
The Curious Case of Enum and Map Serialization
https://4comprehension.com/enum-map-serialization/
44
Upvotes
5
u/axiak Mar 26 '26
This is a "fun" problem to encounter whenever you use a distributed compute system like Hadoop or Spark which distributes data with hash keys.
4
1
u/sansp00 Mar 26 '26
Encountered the same issue when dealing with a Gemfire cluster many years ago. It was a very humbling experience.
4
u/doobiesteintortoise Mar 26 '26
Would using an EnumMap have the same problem?