-
Notifications
You must be signed in to change notification settings - Fork 271
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
@Nullable List and Set initialized as empty become null after Java serialization/deserialization #1295
Comments
will look into that, thank you. I think that code is not completely wrong for being not the same for regular collections ( |
Thank you, Eugene. Maybe just a few words about our use-case: we use generated "request objects" to search for some domain entities (ex. devices). "Request objects" contain all the possible criteria, ex. names, types, locations, etc., which are collections. We need to distinguish two cases:
Cheers |
Dear Eugene, |
Thanks for reminding, seems like I found the solution, yet was a bit puzzling to figure out where the logical mistake was. I'm merging to master, will release in beta3 in 1-2 days |
Thank you very much, Eugene!
Roman
…On Sat, May 29, 2021 at 4:38 AM Eugene Lukash ***@***.***> wrote:
Thanks for reminding, seems to found the solution, yet was a bit puzzling
to figure out where the logical mistake was. I'm merging to master, will
release in beta3 in 1-2 days
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1295 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT4MQEN6MDTKRXP6H4B5CADTQBHT5ANCNFSM432B2UOQ>
.
|
Dear Eugene, |
Hi Roman, only now I've managed to return to this, released in |
Thank you very much, Eugene! |
We're planning to release 2.9.0 within couple of weeks |
Dear @elucash and @asereda-gs , |
@RJoker0 I'm very sorry for the seemingly endless delays, we had extremely small amount of time that we could dedicate to that in the light of some hard to troubleshoot issues. I've carved some time for the last ditch effort to address known issues with the goal to release with whatever remains. Wish me good luck tonight :) |
Good luck, Eugene!
…On Fri, Jan 14, 2022 at 4:13 AM Eugene Lukash ***@***.***> wrote:
@RJoker0 <https://github.com/RJoker0> I'm very sorry for the seemingly
endless delays, we had extremely small amount of time that we could
dedicate to that in the light of some hard to troubleshoot issues. I've
carved some time for the last ditch effort to address known issues with the
goal to release with whatever remains. Wish me good luck tonight :)
—
Reply to this email directly, view it on GitHub
<#1295 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT4MQEJ3GEYK6GF6TGGQLEDUV6IF3ANCNFSM432B2UOQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
released in 2.9.0 at last |
Good day,
We are using immutables 2.8.2 and realized that if we have a
@Nullable
Set or List fields which are initialized with an empty collection then after Java serialization/deserialization they become nulls.At the same time,
@Nullable
Collection fields remain empty collections what I consider expected behavior.This happens because the generated code is different by some reason between List/Set and Collection fields in the generated SerialForm nested class:
Would it be possible to change Set and List behavior to the same as for Collections.
Thanks in advance!
immutables-sample.zip
The text was updated successfully, but these errors were encountered: