Skip to content

JsonSetter.contentNulls is ignored if the deserialization result from a token that is not JsonToken.VALUE_NULL is null. #5165

@k163377

Description

@k163377

Search before asking

  • I searched in the issues and found nothing similar.

Describe the bug

This is a follow-up to the following issues
#5139 (fixed via PR #5140)
FasterXML/jackson-module-kotlin#976

In the deserializer inheriting from ContainerDeserializerBase, I found problems in the following classes

The StringArrayDeserializer does not inherit from the ContainerDeserializerBase, but seems to have the same problem.
There may be other deserializers with similar problems, but I have not been able to verify them.

The MapEntryDeserializer was not using _nullProvider.
However, it has not been confirmed that there is no problem with not using _nullProvider.

Version Information

2.19.0(2.19.1-SNAPSHOT)

Reproduction

Same as #5139

Expected behavior

If the deserialization result of the value is null, then JsonSetter.contentNulls must work.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions