The KeyDeserializer
specified in the class with @JsonDeserialize(keyUsing = ...)
is overwritten by the KeyDeserializer
specified in the ObjectMapper
.
#4444
Labels
2.17
Issues planned at earliest for 2.17
Search before asking
Describe the bug
SSIA
Also, the attached
Java
reproduction code is directly addingKeyDeserializer
toSimpleModule
, but it seemed to be reproduced when usingKeyDeserializers
.Version Information
Reproduced in the latest 2.17 branch(fe42cf7).
Also, 2.16.1 seems to have the same problem.
Reproduction
Expected behavior
Like
JsonDeserializer
, theKeyDeserializer
specified for the class must be used.Additional context
This problem was discovered during prototyping to solve FasterXML/jackson-module-kotlin#777.
ProjectMapK/jackson-module-kogera#224
I'm not sure if I should merge it into
kotlin-module
as it is, since the default content provided byKotlinModule
overrides any user customization.The text was updated successfully, but these errors were encountered: