Description
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.
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 (
Attachments
Issue Links
- relates to
-
JDK-8253568 Replace and mitigate Object.finalize() uses in JDK libraries
- Open