Skip to content

[652-603]: Yasson ignores @JsonbTypeAdapter on class level of object in Collection/Map#684

Open
raushan606 wants to merge 2 commits intoeclipse-ee4j:masterfrom
raushan606:issue652
Open

[652-603]: Yasson ignores @JsonbTypeAdapter on class level of object in Collection/Map#684
raushan606 wants to merge 2 commits intoeclipse-ee4j:masterfrom
raushan606:issue652

Conversation

@raushan606
Copy link

#652 & #603

📝 Implementation Notes

Two main things resolved here:

  1. ObjectTypeSerializer Caching Problem:
  • When objects were first encountered through collections, they were cached with collection-level customization
  • This ignored class-level @JsonbTypeAdapter annotations
  • Subsequent serializations reused the incorrectly cached serializer
  1. Customization Context Mismatch:
  • Collection serialization used property/context customization
  • Class-level adapter annotations existed in class customization
  • The two customization contexts weren't properly merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants