JDK-8286065 : Release Note: Remove finalizer implementation in SSLSocketImpl
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 19
  • Priority: P3
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2022-05-03
  • Updated: 2022-06-18
  • Resolved: 2022-05-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19Resolved
Description
The finalizer implementation in SSLSocket has been removed, with the underlying native resource releases now done by the Socket implementation.  With this update, the TLS close_notify messages will no longer be emitted if SSLSocket is not explicitly closed.

Not closing Sockets properly is an error condition that should be avoided.  Applications should always close sockets and not rely on garbage collection.