You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change default of DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES to true for 3.0 #4858
As of Jackson 2.x, DeserializationFeature. FAIL_ON_NULL_FOR_PRIMITIVES defaults to false, allowing coercion from JSON null into Java int, long and so on.
For some users -- and especially on "low null" languages like Kotlin -- such coercion is rarely expected, so suggestion was made to change the default.
No decision is yet made: discussion for helping decision is here:
changed the title [-]Change default of `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES` to `false` for 3.0[/-][+]Change default of `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES` to `true` for 3.0[/+]on Dec 31, 2024
Activity
yawkat commentedon Dec 30, 2024
I assume title should say "change to
true"?Sounds like a good change to me.
[-]Change default of `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES` to `false` for 3.0[/-][+]Change default of `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES` to `true` for 3.0[/+]cowtowncoder commentedon Dec 31, 2024
@yawkat Thanks, yes fixed that typo. And looks like proposal is passing (5 to 1 voting as of now).
cowtowncoder commentedon Jan 7, 2025
As per FasterXML/jackson-future-ideas#79, proposal approved, will work on this.
Fix #4858: change default for `DeserializationFeature.FAIL_ON_NULL_FO…
Fix #4858: change default for `DeserializationFeature.FAIL_ON_NULL_FO…
JooHyukKim commentedon Jan 8, 2025
Added PR to push through changes in #4890.
Modified JSTEP-2 accordingly.
(complete #4858): actually change default `FAIL_ON_NULL_FOR_PRIMITIVE…
JooHyukKim commentedon Jan 9, 2025
Per-test modification needed after #4884 merged.
JooHyukKim commentedon Jan 9, 2025
@cowtowncoder Made fixes to most of modules. all failing tests seem to be reasonable (nothing buggy).
May I ask for help with Scala module @pjfanning ?
cowtowncoder commentedon Jan 9, 2025
@JooHyukKim yes, @pjfanning maintains Scala module and should be able to help.
Looks like it's only 4 test failures, fortunately: