JDK-8302845 : Replace finalizer usage in JNDI DNS provider with Cleaner
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: javax.naming
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-02-20
  • Updated: 2023-05-16
  • Resolved: 2023-05-10
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 21
21 b22Fixed
Related Reports
Relates :  
Description
DnsClient has a finalize method to close its internal Selector and clear the requests/responses. This could be replaced with a cleaner that closes the Selector (the cleaner doesn't need to clear the queues).
Comments
Changeset: da2c9302 Author: Aleksei Efimov <aefimov@openjdk.org> Date: 2023-05-10 09:39:00 +0000 URL: https://git.openjdk.org/jdk/commit/da2c9302628886bbdb4cf588f8275c4a44ff5ac9
10-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13837 Date: 2023-05-05 17:25:38 +0000
05-05-2023

I've attach a prototype patch that closes the Selector when the DnsClient is phantom reachable.
20-02-2023