This repository has been archived by the owner on Jan 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Polymorphic deserialization involving Guava Optional<T> is broken #42
Milestone
Comments
Thank you, I will try to reproduce, figure out what is going on. |
Looking at change notes, #37 would seem related, but it was in 2.3.3. |
I just tested with 2.3.3 as well and my example still breaks. 😦 |
Sure, I was more trying to understand what caused breakage, not that it would yet be fixed. |
Ok, although fixing was rather more involved than I expected, this is now fixed both for master (2.4) and 2.3 branch (for eventual 2.3.4). |
Thank you! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Between 2.2.3 and 2.3.2 the technique of deserializing an optional polymorphic type using
@JsonTypeInfo
and@JsonSubTypes
no longer seems to work. Without the GuavaOptional<T>
everything works fine.Self-contained example demonstrating the problem can be found here: https://gist.github.com/bbeck/934d787cc36c61c3e8a0
The text was updated successfully, but these errors were encountered: