-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[JAVA-5203] Support stored nulls for non-primitive fields in Java records #1223
[JAVA-5203] Support stored nulls for non-primitive fields in Java records #1223
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the Jira report and the pull request. I have a change request for you if you're inclined to keep working on this.
bson-record-codec/src/main/org/bson/codecs/record/RecordCodec.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more change, please.
bson-record-codec/src/main/org/bson/codecs/record/RecordCodec.java
Outdated
Show resolved
Hide resolved
Thanks for the contribution, @bulbfreeman |
OOI is there an expected date for the next version release that contains this change? @jyemin |
Yes, it should be released around Tuesday of next week. |
Awesome, thanks! |
Why
Same as the issue raised in https://jira.mongodb.org/browse/JAVA-5134, this change implements a mechanism to gracefully handle stored nulls for fields that are annotated with JSR305
@Nullable
annotations.Changes
isNullable
toRecordCodec.ComponentModel
, which is set to true when given field is not primitive.BsonInvalidOperationException
.Issue ticket
JAVA-5203