The Curious Case of Enum and Map Serialization
Grzegorz Piwowarek
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...