Skip to content

Commit

Permalink
Fix #4858: change default for `DeserializationFeature.FAIL_ON_NULL_FO…
Browse files Browse the repository at this point in the history
…R_PRIMITIVES` to true (#4884)
  • Loading branch information
cowtowncoder authored Jan 7, 2025
1 parent 481e738 commit b63eb33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*<p>
* 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),

Expand Down

0 comments on commit b63eb33

Please sign in to comment.