-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
DecimalNode
type not retained during JDK serialization, deserialization
#3296
Comments
Thank you for reporting this, @victornoel ! I can see how this might happen, and you are right it is different/not yet reported. Problem I think is due to JDK serialization of Alternatively this could also be related to the fact that I wish I had time to dig into this; seems like there are ways to go about it. Ideally it would "just work", of course. |
Hmmh. Ok, what is happening is that This is due to my deciding to use a compact & light-weight format for serialization of I think I'll consider it a flaw but one that probably will not be fixed: effort to create alternate parallel encoding schema that would retain type seems rather expensive for benefits. In general intent with |
DecimalNode
type not retained during JDK serialization, deserialization
Describe the bug
When a
DecimalNode
is cloned via serialization (serialized then deserialized), the clone is not equal to the original.I know there are a lot of issues related to
BigDecimal
in jackson, but I don't think I have seen one about this. Don't hesitate to close it if there are other planned/tracked issues that covers this :)Version information
2.12.1
To Reproduce
The text was updated successfully, but these errors were encountered: