Java - Modifying serialVersionUID of binary serialized object

前端 未结 4 769
感情败类
感情败类 2021-01-07 08:37

A few months back I serialized a java.io.Serializable object into a file. Now I need to read the contents, but since then the serialVersionUID has changed, and now I\'m get

4条回答
  •  遥遥无期
    2021-01-07 08:47

    Why not modify the serialVersionUID in your current version instead as described in the Serialization documentation?

提交回复
热议问题