-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Serialization of nested generic inheritance fails: can not specialize #2080
Comments
First of all, thank you for reporting the issue. 2.9.6 did relax some of the checks, which probably explains why some cases now work. |
The above test fails on Jackson 2.9.7, but succeeds on 2.9.8. |
Yes. Not only does that exactly describe and solve my issue, it literally is the exact same issue affecting the exact same codebase, because it's reported by a coworker 😄 Thank you very much! I'll close this issue, as it is resolved in 2.9.8 |
When trying to serialize an object, which itself has generic objects, under some circumstances the serialization fails. It's difficult to put the exact circumstances under which the error occurs into words, so I made a minimal testcase.
Serializable
, it fails on 2.9.3, 2.9.4 and 2.9.5, but works on 2.9.6, making me believe it has something to do with issue Failed to specializeMap
type during serialization where type key type incompatibility overidden via "raw" types #1964 and commitde6ca25
failure output:
The text was updated successfully, but these errors were encountered: