From 3a271be870821301f73054e43e32f657e4753234 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Tue, 7 Nov 2023 18:04:12 -0800 Subject: [PATCH] Post-commit fixes to #1770 --- release-notes/VERSION-2.x | 3 +++ .../databind/{ => node}/NumberNodes1770Test.java | 13 ++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) rename src/test/java/com/fasterxml/jackson/databind/{ => node}/NumberNodes1770Test.java (92%) diff --git a/release-notes/VERSION-2.x b/release-notes/VERSION-2.x index 30a1b9bf0b..1862437c5d 100644 --- a/release-notes/VERSION-2.x +++ b/release-notes/VERSION-2.x @@ -6,6 +6,9 @@ Project: jackson-databind (not yet released) +#1770: Incorrect deserialization for `BigDecimal` numbers + (reported by @cristian-mocanu-mob) + (fix contributed by @pjfanning) #4184: `BeanDeserializer` updates `currentValue` incorrectly when deserialising empty Object (reported by @nocny-x) diff --git a/src/test/java/com/fasterxml/jackson/databind/NumberNodes1770Test.java b/src/test/java/com/fasterxml/jackson/databind/node/NumberNodes1770Test.java similarity index 92% rename from src/test/java/com/fasterxml/jackson/databind/NumberNodes1770Test.java rename to src/test/java/com/fasterxml/jackson/databind/node/NumberNodes1770Test.java index 96ccf27999..2eaf375a68 100644 --- a/src/test/java/com/fasterxml/jackson/databind/NumberNodes1770Test.java +++ b/src/test/java/com/fasterxml/jackson/databind/node/NumberNodes1770Test.java @@ -1,15 +1,14 @@ -package com.fasterxml.jackson.databind; +package com.fasterxml.jackson.databind.node; + +import java.math.BigDecimal; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.json.JsonReadFeature; -import com.fasterxml.jackson.databind.json.JsonMapper; -import java.math.BigDecimal; +import com.fasterxml.jackson.databind.*; +import com.fasterxml.jackson.databind.json.JsonMapper; -/** - * Basic tests for {@link JsonNode} implementations that - * contain numeric values. - */ +// Tests for [databind#1770] public class NumberNodes1770Test extends BaseMapTest { private final ObjectMapper MAPPER = newJsonMapper();