Skip to content

Preserve null boxed primitives roundtrip #179

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

Merged

Conversation

laurgarn
Copy link
Contributor

When a java object contains has a boxed primitive field set to null and is serialized to Json with SKIP_NULL,
the current deserialization puts a 0/False in place of the null. So the roundtrip java -> js -> java is assured not be idempotent in this case.
The TestNullIntegerConstructor ensure(d/s) that this behaviour is "stable".

This pull request is a proposal to change this above described behaviour, without mitigation.

@laurgarn laurgarn changed the title Preserve null boxed primitives roundtrip Draft Preserve null boxed primitives roundtrip Sep 13, 2023
@laurgarn laurgarn changed the title Draft Preserve null boxed primitives roundtrip Preserve null boxed primitives roundtrip Sep 13, 2023
@jdereg jdereg merged commit 43bdfbf into jdereg:master Sep 13, 2023
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