Skip to content

Incorrect deserialization of inner object when using @JsonUnwrapped, with duplicate property #1176

@Sild

Description

@Sild

I suggest that there is a bug, if I define the same names for getters\setters name in Child and Root classes.
I have try to use @JsonIgnore on Root getters\setters to prevent double-serialize, but always get null in child object.

Example of my issue: https://github.com/Sild/jackson-deserialize-test/

We get null in Child.entity. But if we rename Root.getEntity() and Root.setEntity() method (to getChildEntity, for example), we get correct Child.entity value

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