AFAICT from the description, it seems to me that Jackson deserializes something into that Map
field which is not a Map<MyEnum, String>
, but rather Map<Integer, String>
, so your ArrayToMapDeserializer
probably does something wrong. Note that generics in Java are erased.