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

ObjectOutputStream.writeObjectOverride(), ObjectInputStream.readObjectOverride() javadoc issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • None

      The ObjectOutputStream.writeObjectOverride() method incorrectly refers to ObjectInputStream instead of ObjectOutputStream. Moreover the documentation is unclear about the usage of the method. The method is invoked by the superclass writeObject implementation in the event that the subclass instance was created using the no-arg constructor of ObjectOutputStream. Similar comment applies for ObjectInputStream.

      Additionally, ObjectStreamConstants.SUBCLASS_IMPLEMENTATION_PERMISSION documentation ought to include putFields, readFields, writeUnshared and readUnshared methods.

            darcy Joe Darcy
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: