@JsonAlias
not respected by polymorphic deduction
#4327
Labels
2.17
Issues planned at earliest for 2.17
polymorphic-deduction
Issues related to "Id.DEDUCTION" mode of `@JsonTypeInfo`
Milestone
Search before asking
Describe the bug
I'm trying use
@JsonAlias
on a class which is a member of a type hierarchy, and then expecting Jackson Databind to be able to use the alias to determine the type.My class hierarchy is Deduction, annotated with its two concrete implementations:
where
DeductionBean2
uses an alias.This fails like so when deserializing
{'Y': 2 }
Version Information
2.17
master
Reproduction
I've added a test tools.jackson.databind.deser.PropertyAliasTest#testAliasWithPolymorphicDeduction that demonstrates the issue I face.
k-wall@8380c94
Expected behavior
Aliases to be respected by
DEDUCTION
.Additional context
No response
The text was updated successfully, but these errors were encountered: