Reputation: 151
I had serialized some objects of class into a file later the class structure had modified. So I cannot deserialize my object back. Please let me know how can I restore these objects?
Upvotes: 1
Views: 198
Reputation: 52205
You could:
Upvotes: 1
Reputation: 5074
To make it short: You should use your previous version of your java class and use it to read the serialized objects. Then you'll have to make a transition piece of software reading previous data and filling fields in the new object with this data before serializing this new version of your object.
Upvotes: 3