jackson-databind icon indicating copy to clipboard operation
jackson-databind copied to clipboard

try to fix part of #4668

Open wesleyking0 opened this issue 1 year ago • 1 comments

To fully resolve the #4668 problem, it may require two steps:

  • Skip resolving the @JsonTypeInfo annotation if a subtype is defined with @JsonTypeInfo and its definition is not compatible with the superclass.
  • Confirming a more specific type during deserialization.

I have completed the first step, but I don't have a pretty good idea for the second step yet. -:)

wesleyking0 avatar Aug 17 '24 09:08 wesleyking0

I don't think I will be accepting this since usage on #4668 is wrong -- subtypes are not expected to change @JsonTypeInfo definition.

Put another way, @JsonTypeInfo definitions must be consistent across type hierarchy.

cowtowncoder avatar Aug 20 '24 21:08 cowtowncoder

I don't think #4668 should be done in general, so not proceeding with this PR either, closing.

cowtowncoder avatar Oct 31 '24 19:10 cowtowncoder