Skip to content

Jackson-databind caches plain map deserializer and use it even map has @JsonDeserializer #1807

@lexas2509

Description

@lexas2509

Hi.

We face the issue with map deserialization when custom KeyDeserializer is used. Looks like if we have two different Models one with plain map deserializer and another with custom one. And if we have deserialized first model then all upcoming deserialization request will be processed by plain map deserializer instead of using custom map deserializer specified for this model.

Here you can find Unit test to reproduce this issue.

We are using jackson 2.8.9 version.

In attached
test.zip

Thank you
Alexey

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions