Skip to content

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

Merged
elucash merged 1 commit into
immutables:masterfrom
SimY4:topic/nullable-default
Oct 18, 2022
Merged

elucash merged 1 commit into
immutables:masterfrom
SimY4:topic/nullable-default

Conversation

@SimY4

@SimY4 SimY4 commented Oct 16, 2022

Copy link
Copy Markdown
Contributor

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

elucash commented Oct 18, 2022

Copy link
Copy Markdown
Member

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.

2 participants