Thread View: borland.public.jbuilder.java.api
2 messages
2 total messages
Started by George
Tue, 18 Feb 2003 18:36
Serialization in JB8 - Personal
Author: George
Date: Tue, 18 Feb 2003 18:36
Date: Tue, 18 Feb 2003 18:36
13 lines
1470 bytes
1470 bytes
I have a little personal application that is currently in JB7- Personal that serializes some objects to a file when the application is closed. All of the classes are serialized simply using the defaultWriteObject() method. Everything works as intended. I am able to de-serialize the objects next time around the application is started. I tried running this application in JB 8 but I get serialization error when the file is written. I haven't changed anything in the source. Is there anything different about serialization in JDK 1.4? TIA George
Re: Serialization in JB8 - Personal
Author: John McGrath TeamB
Date: Wed, 19 Feb 2003 22:25
Date: Wed, 19 Feb 2003 22:25
31 lines
2325 bytes
2325 bytes
On Tue, 18 Feb 2003 13:36:27 -0500, George wrote:
> I tried running this application in JB 8 but I get serialization
> error when the file is written. I haven't changed anything in
> the source.
It would help to post the exact error message along with a traceback.
> Is there anything different about serialization in JDK 1.4?
Yes, but this would cause you problems deserializing the objects, not
with serializing them. But you asked, so:
If a serializable nested class contains explicit references to a
class object (for example, "Foo.class"), then the computed value
of the default serial version UID for both the nested class and
its enclosing class will be different in J2SE 1.3 and J2SE 1.4.
The difference is due to the fact that the computation of the
serial version UID is sensitive to modifications made in the
javac compiler between J2SE 1.3 and J2SE 1.4.
[ http://java.sun.com/j2se/1.4/compatibility.html ]
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads