Skip to content

delegate deserializers choke on a (single) abstract/polymorphic parameter, where a named property works fine #580

@tea-dragon

Description

@tea-dragon

assuming this works (ie. the abstract type has type deserialization configs):

@JsonCreator public SomeClass(@JsonProperty("source") SomeAbstractClass source) {}

this still does not work:

@JsonCreator public SomeClass(SomeAbstractClass source) {}

the former has slightly different syntax since the delegate object has to be wrapped in another property, but I am drawing a blank as to why this would be intentionally inconsistent. It seems to be an issue where delegate deserializers fail to do any logic related to type resolution and fail on an AbstractDeserializer.deserialize() call.

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