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

Add support for and update to Jackson 2.15.x #122

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

bernd
Copy link
Contributor

@bernd bernd commented Sep 13, 2023

Jackson added the "JsonParser#getNumberValueDeferred()" method, including a default implementation in "ParserBase". When using polymorphic or wrapped types, the default implementation returns an empty string for a float or double value.

This change introduces an implementation for "#getNumberValueDeferred" in "BsonParser" to fix the problem.

Add a test for parsing and generating wrapped types.

Fixes #121

Jackson added the "JsonParser#getNumberValueDeferred()" method, including
a default implementation in "ParserBase". When using polymorphic or
wrapped types, the default implementation returns an empty string for
a float or double value.

This change introduces an implementation for "#getNumberValueDeferred"
in "BsonParser" to fix the problem.

Add a test for parsing and generating wrapped types.

Fixes michel-kraemer#121
@michel-kraemer
Copy link
Owner

Great work! Thank you so much!

@michel-kraemer michel-kraemer merged commit 8a4c307 into michel-kraemer:master Sep 23, 2023
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.

Jackson 2.15.0 - Error deserializing an @JsonUnwrapped object with a field of type float
2 participants