You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Since we set accessOrder to true during serialization, we expect the output order after deserialization to be a, b. However, due to the fact that the accessOrder field is not correctly deserialized, the actual output is b, a.
You are right. It is quite surprising that this has never come up before.
Kryo uses the default MapSerializer for LinkedHashMap that is completely unaware of this parameter. Your best option is to register a custom serializer that writes an additional boolean flag. See TreeMapSerializer for a serializer that extends MapSerializer with additional data.
Describe the bug
Since we set
accessOrder
totrue
during serialization, we expect the output order after deserialization to bea, b
. However, due to the fact that theaccessOrder
field is not correctly deserialized, the actual output isb, a
.To Reproduce
Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: