Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default of DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES to false for 3.0 #4858

Open
cowtowncoder opened this issue Dec 18, 2024 · 0 comments
Labels
3.0 Issue planned for initial 3.0 release

Comments

@cowtowncoder
Copy link
Member

Describe your Issue

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:

FasterXML/jackson-future-ideas#79

this issue is placeholder until decision is made.

@cowtowncoder cowtowncoder added to-evaluate Issue that has been received but not yet evaluated 3.0 Issue planned for initial 3.0 release and removed to-evaluate Issue that has been received but not yet evaluated labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 Issue planned for initial 3.0 release
Projects
None yet
Development

No branches or pull requests

1 participant