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

Remove finalize methods for SocketInput/OutputStream

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • core-libs
    • b15

      Object.finalize has been deprecated and uses should be removed or converted.

      The classes java.net.SocketInputStream and java.net.SocketOutputStream have empty finalize methods. These methods exist to override and cancel the finalize methods of their base classes (java.io.FileInputStream and java.io.FileOutputStream, respectively). However, those classes no longer have finalize methods (JDK-8192939, JDK 12). As a result, the socket stream finalize methods no longer serve any purpose and can be removed.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: