dcsimg
How can I change the names of instance variables in...
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Hugh_Robinson
Posted On:   Monday, June 26, 2000 09:06 PM

How can I change the names of instance variables in a class which is Serializable and still be able to read serialized files from a previous version of the class?


One answer appears at first to be to use serialver to create a version ID and to implement readObject() and writeObject() . The problem then is, how would I know in which order to read in the instance variables from the old serialized files?

About | Sitemap | Contact