JDK-8195059 : Update java.net Socket and DatagramSocket implementations to use Cleaner
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-01-12
  • Updated: 2018-03-28
  • Resolved: 2018-02-02
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 11
11 b01Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
The java.net.AbstractPlainDatagramSocketImpl and AbstractPlainSocketImpl have finalize methods that call close() to free FileDescriptors when the objects are no longer referenced.  The cleanup behavior is not specified and can be reimplemented to use the Cleaner to more efficiently free FileDescriptors.