Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialization of @JsonTypeInfo annotated type fails with missing type id even for explicit concrete subtypes (3.0-only) #3824

Closed
cowtowncoder opened this issue Mar 13, 2023 · 1 comment
Labels
3.x Issues to be only tackled for Jackson 3.x, not 2.x

Comments

@cowtowncoder
Copy link
Member

cowtowncoder commented Mar 13, 2023

With fix for #2968, Jackson 2.15 and later 2.x will allow deserialization of certain polymorphic types even if the type id is missing -- as long as target type itself would not be considered polymorphic (is above base type, has no @JsonTypeInfo / would not enable Default Typing).

Unfortunately, due to major refactoring of polymorphic type handling, the fix could not be directly ported in main for Jackson 3.0.
So a different fix is needed here.

@cowtowncoder cowtowncoder added the to-evaluate Issue that has been received but not yet evaluated label Mar 13, 2023
@cowtowncoder cowtowncoder changed the title Deserialization of @JsonTypeInfo annotated type fails with missing type id even for explicit concrete subtypes 9 Deserialization of @JsonTypeInfo annotated type fails with missing type id even for explicit concrete subtypes (3.0-only) Mar 13, 2023
@cowtowncoder cowtowncoder added 3.x Issues to be only tackled for Jackson 3.x, not 2.x most-wanted Tag to indicate that there is heavy user +1'ing action and removed to-evaluate Issue that has been received but not yet evaluated labels Mar 13, 2023
cowtowncoder added a commit that referenced this issue Mar 13, 2023
@cowtowncoder
Copy link
Member Author

Was able to find the replacement quite easily in the end. :)

@cowtowncoder cowtowncoder added 3.x Issues to be only tackled for Jackson 3.x, not 2.x and removed 3.x Issues to be only tackled for Jackson 3.x, not 2.x most-wanted Tag to indicate that there is heavy user +1'ing action labels Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issues to be only tackled for Jackson 3.x, not 2.x
Projects
None yet
Development

No branches or pull requests

1 participant