-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
beta
-
sparc
-
solaris_2.5.1
Name: krT82822 Date: 03/27/99
orig synopsis: "ObjectOutputStream documentation incorrect in stating class of object is written"
In the online documentation of the 1.2 Core API Specification in:
file:/local/java/jdk1.2/docs/api/java/io/ObjectOutputStream.html
it states:
The default serialization mechanism for an object writes the class of the
object, the class signature, and the values of all non-transient and
non-static fields
The phrase "writes the class of the object" is not true. The class is not
written to the stream. If I serialize an instance of class A into a stream,
remove A.class and deserialize the stream, the deseialization is aborted as
class A cannot be found. If the class was written to the stream, this
wouldn't happen.
Regards
Huw Evans
(Review ID: 56183)
======================================================================