Skip to content

DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS does not work when used with Polymorphic type handling #4610

Closed
@JooHyukKim

Description

@JooHyukKim

Search before asking

  • I searched in the issues and found nothing similar.

Describe the bug

This is offshoot from #4607, DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS does not work when Polymorphic type handling takes place.

Version Information

2.16 and later.

Reproduction

#4611

Expected behavior

Should fail when...

  • object id is not provided
  • class is annotated with @JsonIdentityInfo
  • enabled DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS

... and should pass when disabled DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    to-evaluateIssue that has been received but not yet evaluated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions