Cannot deserialize value of type java.math.BigDecimal
from String ".05": not a valid representation
#4435
Closed
1 task done
Labels
2.17
Issues planned at earliest for 2.17
Search before asking
Describe the bug
We faced an issue with the newest release of jackson 2.17 while deserializing BigDecimals from JsonInput with a string value of the format ".f" e.g. {"value":".03"}
When deserializing using a standard ObjectMapper this exception is thrown.
Version Information
2.17
Reproduction
I created a small project with two unit tests, one using NumberInput.parseBigDecimal from jackson-core which is running fine as well as test which is deserializing the same value from a json input.
https://github.com/EAlf91/jackson-issue
Output from the tests:
Expected behavior
I would expect jackson-databind to be able to deserialize the given input as both jackson-core and FastDoubleParser which jackson is relying on both can handle it.
The Changelog also does only mention an enum related change which seems unrelated to the behaviour described in this issue.
Additional context
One of the changes here might have caused this behaviour:
ce9c629
The text was updated successfully, but these errors were encountered: