Skip to content

Commit 3a271be

Browse files
committed
Post-commit fixes to #1770
1 parent 636f1b3 commit 3a271be

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

release-notes/VERSION-2.x

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Project: jackson-databind
66

77
(not yet released)
88

9+
#1770: Incorrect deserialization for `BigDecimal` numbers
10+
(reported by @cristian-mocanu-mob)
11+
(fix contributed by @pjfanning)
912
#4184: `BeanDeserializer` updates `currentValue` incorrectly when
1013
deserialising empty Object
1114
(reported by @nocny-x)

src/test/java/com/fasterxml/jackson/databind/NumberNodes1770Test.java renamed to src/test/java/com/fasterxml/jackson/databind/node/NumberNodes1770Test.java

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
package com.fasterxml.jackson.databind;
1+
package com.fasterxml.jackson.databind.node;
2+
3+
import java.math.BigDecimal;
24

35
import com.fasterxml.jackson.core.JsonFactory;
46
import com.fasterxml.jackson.core.json.JsonReadFeature;
5-
import com.fasterxml.jackson.databind.json.JsonMapper;
67

7-
import java.math.BigDecimal;
8+
import com.fasterxml.jackson.databind.*;
9+
import com.fasterxml.jackson.databind.json.JsonMapper;
810

9-
/**
10-
* Basic tests for {@link JsonNode} implementations that
11-
* contain numeric values.
12-
*/
11+
// Tests for [databind#1770]
1312
public class NumberNodes1770Test extends BaseMapTest
1413
{
1514
private final ObjectMapper MAPPER = newJsonMapper();

0 commit comments

Comments
 (0)