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

fixing #1407 - Default value with explicit null should use default. #1410

Merged
merged 1 commit into from Oct 18, 2022

Conversation

SimY4
Copy link
Contributor

@SimY4 SimY4 commented Oct 16, 2022

Fixing an issue with Jackson and staged builder feature interaction.

Essentially, null values are not allowed when the immutable entry is identified as not nullable.

@elucash
Copy link
Member

elucash commented Oct 18, 2022

I'm not sure how Jackson/Immutables combination work in this case in terms of semantics, It's hard to me to say that it is justified of not to behave in this way, also I'm not sure how it's only surface with staged builder, seems to be a common problem. However, it's still looks innocent, even if a little bit lenient/non-strict behavior, so I'm merging this. I have no better way to fix this, and I have not strong opinions (any more) about how Jackson/Immutables combination should work in ideal word. Thank you for the PR!

@elucash elucash added this to the 2.9.3 milestone Oct 18, 2022
@elucash elucash merged commit 29bca65 into immutables:master Oct 18, 2022
@SimY4 SimY4 deleted the topic/nullable-default branch October 18, 2022 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants