-
Notifications
You must be signed in to change notification settings - Fork 22
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
Regression in 2.15: parsing double value returns BigDecimal instead of Double #39
Comments
Ok so the question is: is the new behavior erroneous? Yes, it is a change and in hindsight unfortunate. But given there is new behavior for 2.15 I am not sure reverting change is the right thing to do. Also see #38 for more discussion. One possible way forward would be to support @pjfanning WDYT? |
This is very easily worked around - see #32 (comment) The old behaviour had a bug. It did not handle big numbers properly. Users who want doubles can still get doubles by using the API to ask for a Double. Examples in https://github.com/FasterXML/jackson-datatypes-misc/pull/38/files The code in #38 should work in older versions of Jackson too (see #40) |
Ok I think I'll close this then, after tests were added to document the new behavior. |
I'm filing this issue as the result of conversation in pull request:
#32
Here is the test:
When I run it with Jackson 2.13.4 then it passes. When I run it with Jackson 2.15.0, it fails with error:
The text was updated successfully, but these errors were encountered: