-
-
Notifications
You must be signed in to change notification settings - Fork 142
Collection deserializer should create empty collection instead of null (when input is null) #722
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
Comments
In my opinion this change is unsafe. With this change when Could this PR be re-considered and above concerns could be taken into account? In my opinion without any feature flag this change is a bug. For java collection behaviour is assigning |
I have no current plans to revert this. The change is more consistent with the Java collection deserialization. |
@psliwa if you are interested in submitting a PR, I will review it - but the PR needs proof that the behaviour in this module for a Scala List differs from how jackson-databind deals with a Java List. And also, Scala developers tend to hate nulls. Have you considered having an |
I've update the README. |
Thanks for your comments. It is easy to check how Java collections handing differs from Scala collections after this merge, I can provide later some snippet to show difference but preparing PR knowing it will be rejected doesn't make sense to me. Java collections handling honor |
Many thanks 🙏 Solution in this new PR looks like good compromise, thanks |
Uh oh!
There was an error while loading. Please reload this page.
The text was updated successfully, but these errors were encountered: