Skip to content

Commit 4f6aec4

Browse files
committed
Fix #4858: change default for DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES to true
1 parent 481e738 commit 4f6aec4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

release-notes/VERSION

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Versions: 3.x (for earlier see VERSION-2.x)
8484
#4820: Change JDK baseline for Jackson 3.0 from Java 8 to Java 17
8585
#4835: Remove dynamic work-arounds wrt accessing `Record` definition
8686
#4840: Increase minimum Android SDK required to 34 for Jackson 3.0
87+
#4858: Change default of `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES`
88+
to `true` for 3.0
8789
#4875: Remove `JsonNode.fields()` from 3.0
8890
#4879: Rename `TextNode` as `StringNode`; `JsonNode.xxxTextYyy()` (mostly) as
8991
`JsonNode.xxxStringYyy()` [JSTEP-3]

src/main/java/tools/jackson/databind/DeserializationFeature.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public enum DeserializationFeature implements ConfigFeature
124124
* is thrown to indicate this; if not, default value is used
125125
* (0 for 'int', 0.0 for double, same defaulting as what JVM uses).
126126
*<p>
127-
* Feature is disabled by default.
127+
* Feature is enabled by default as of Jackson 3.0 (in 2.x it was disabled).
128128
*/
129129
FAIL_ON_NULL_FOR_PRIMITIVES(false),
130130

0 commit comments

Comments
 (0)