Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4224695

ObjectOutputStream doc: clarify that class name/ref written, not class itself

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • 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)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: