-
-
Notifications
You must be signed in to change notification settings - Fork 141
Unable to deserialize a pojo with IonStruct #571
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
One potential partial fix is to make IonValueDeserializer into a ContextualDeserializer and then create the correct IonNull container type.
However, I do not see anyway good way to handle the roundtrip test above since there is no way to distinguish between a java
|
I was about to suggest a new parser feature, yes. Sounds like the way to go -- otherwise trying to deduce which way to go seems complicated and fragile. |
PR: #573 |
I have run into a few more cases of the original change breaking expectations. I am inclined to default the new parser feature to false. Thoughts? |
@seadbrane I'll trust your judgment here. Related question, if |
Let's keep the default |
I am not seeing a good option to serialize/deserialize a simple Pojo with a
null
IonStruct.The issue is that by default a null IonStruct gets serialized to
null
but due to this change #296 that gets converted to a an IonNull, and fails with argument type mismatch.Failing testing:
The text was updated successfully, but these errors were encountered: