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

Deprecate for removal java.io.ObjectOutputStream.PutField.write

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 23
    • core-libs
    • None
    • binary, behavioral
    • minimal
    • Hide
      This method has been deprecated since 1.4 and is obsolete.
      Changing the deprecation to "removal = true" may cause compilation warnings as a reminder to update any remaining uses.
      Show
      This method has been deprecated since 1.4 and is obsolete. Changing the deprecation to "removal = true" may cause compilation warnings as a reminder to update any remaining uses.
    • Java API
    • SE

      Summary

      The method java.io.ObjectOutputStream.PutField.write(oos) is deprecated for removal.

      Problem

      This obsolete method has been deprecated since 1.4 and should be removed.

      Solution

      Add "forRemoval = true" to the existing \@deprecated annotation.

      Specification

      In the java.io.ObjectOutputStream.PutField.write(ObjectOutput out) method add "forRemoval = true" to the deprecated annotation.

      @Deprecated(forRemoval = true, since = "1.4")
          public abstract void write(ObjectOutput out) throws IOException;

            rriggs Roger Riggs
            rriggs Roger Riggs
            Iris Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: