diff --git a/release-notes/VERSION b/release-notes/VERSION index 2d9dbd2bfb..f759db6551 100644 --- a/release-notes/VERSION +++ b/release-notes/VERSION @@ -84,6 +84,8 @@ Versions: 3.x (for earlier see VERSION-2.x) #4820: Change JDK baseline for Jackson 3.0 from Java 8 to Java 17 #4835: Remove dynamic work-arounds wrt accessing `Record` definition #4840: Increase minimum Android SDK required to 34 for Jackson 3.0 +#4858: Change default of `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES` + to `true` for 3.0 #4875: Remove `JsonNode.fields()` from 3.0 #4879: Rename `TextNode` as `StringNode`; `JsonNode.xxxTextYyy()` (mostly) as `JsonNode.xxxStringYyy()` [JSTEP-3] diff --git a/src/main/java/tools/jackson/databind/DeserializationFeature.java b/src/main/java/tools/jackson/databind/DeserializationFeature.java index 17dcc229e6..1d9ce2ebe1 100644 --- a/src/main/java/tools/jackson/databind/DeserializationFeature.java +++ b/src/main/java/tools/jackson/databind/DeserializationFeature.java @@ -124,7 +124,7 @@ public enum DeserializationFeature implements ConfigFeature * is thrown to indicate this; if not, default value is used * (0 for 'int', 0.0 for double, same defaulting as what JVM uses). *
- * Feature is disabled by default. + * Feature is enabled by default as of Jackson 3.0 (in 2.x it was disabled). */ FAIL_ON_NULL_FOR_PRIMITIVES(false),