Press "Enter" to skip to content

{ 4Comprehension } Posts

The Curious Case of Enum and Map Serialization

One of Vavr’s users hit a peculiar bug recently: a serialized map containing enum keys, deserialized in another process, appeared to hold the right entries but the map… just could not find them.

The root cause turns out to be a subtle property of Java enums that most Java developers are not aware of.

Leave a Comment