Skip to content
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

JsonNullableDeserializer incompatible with Jackson 2.13 #30

Closed
oliverkuldmae opened this issue Mar 3, 2022 · 2 comments · Fixed by #32
Closed

JsonNullableDeserializer incompatible with Jackson 2.13 #30

oliverkuldmae opened this issue Mar 3, 2022 · 2 comments · Fixed by #32

Comments

@oliverkuldmae
Copy link

oliverkuldmae commented Mar 3, 2022

Jackson added getAbsentValue to its API in version 2.13, which is used when a field is absent. The current version of JsonNullableDeserializer, however, does not implement this method. This results in getNullValue being called, which in turn creates invalid deserialization results.

As the latest versions of Spring Boot use Jackson version > 2.13, this library is essentially unusable in its current form when it comes to new/up to date projects.

See FasterXML/jackson-databind#3214.

@julianladisch
Copy link
Contributor

@oliverkuldmae : Can you provide some sample code where the default implementation of getAbsentValue creates invalid deserialization results?
Can you review #32, does it fix your problem?

@oliverkuldmae
Copy link
Author

@julianladisch it seems that #32 should fix the problem.

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 a pull request may close this issue.

2 participants