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.
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).