Deserialization of javax.swing.text.DefaultStyledDocument
1 posts in topic
Flat View  Flat View

Posted By:   Carolina_Catasus
Posted On:   Tuesday, February 26, 2002 04:04 AM

I have serialized an object of the class javax.swing.text.DefaultStyledDocument with platform Java 2 v1.2.2.

I am trying to deserialize my object with platform Java 2 v1.3.1 and
this throws the Exception java.io.InvalidClassException for the Swing classes included in rt.jar. I am not allowed to modify the serialVersionUID of these classes.

How could I solve my problem?

Re: Deserialization of javax.swing.text.DefaultStyledDocument

Posted By:   Jens_Dibbern  
Posted On:   Tuesday, February 26, 2002 07:45 AM

Unfortunately you ignored the Warning that the serialization of this class is not compatible with future versions. Did you try to extract the differences between the 1.2.2 and 1.3.1 versions of the class? Perhaps you are able to write a binary converter. Or you use a subclass with custom serialization in both versions.


About | Sitemap | Contact