-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
In what version(s) of Spring Integration are you seeing this issue?
After the version 5.5.2 until now
bug
The Class MessageHistory is a serializable class that doesn't have a SerialVersionUID defined, because of that it was taken the default SerialVersionUID created with the previous version.
Now this class was updated in the commit :
af9e69c
Where the equals/hashCode was implemented
Because of that, after the version 5.5.2 the serialVersionUID changed
This change of serialVersionUID makes the previos version incompatible with the new one, because the serialVersionUID matching fails when it tries to deserialize the class.
To Reproduce
Use spring integration with the version 5.5.1 to store a new record, and then update the version to the 5.5.2 or latest to read this record, and it will fails
Expected behavior
Deserialize the class MessageHistory stored in previous versions to the 5.5.2
Is it possible to fix this problem ?
Is there any workaround that we can implement in the meantime ?
Thanks a lot