Skip to content

Property ignorals cause BeanDeserializer to forget how to read from arrays (not copying _arrayDelegateDeserializer) #3022

@gianm

Description

@gianm

Describe the bug
When withIgnorableProperties is called on an already-resolved BeanDeserializer that is meant to read from an array, it uses a constructor that does not copy _arrayDelegateDeserializer, and so the deserializer "forgets" how to read from an array.

This can happen is in createContextual if any ignorals are set. When the deserializer returned by createContextual is then used on an array, it throws an error that it can't read from a START_ARRAY token.

Version information
I am using Jackson 2.10.5 but the problem seems to still exist in the latest master.

To Reproduce
I don't have a minimized test case handy, but hopefully the summary is enough to write one.

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