JDK-8349107 : Remove RMI finalizers
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: javax.naming
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-01-30
  • Updated: 2025-02-10
  • Resolved: 2025-02-04
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 25
25 b09Fixed
Description
3 finalizers in RMI code can be removed, as they do not perform meaningful cleanup:

java.rmi/share/classes/sun/rmi/log/LogInputStream
jdk.naming.rmi/share/classes/com/sun/jndi/rmi/registry/RegistryContext.
jdk.naming.rmi/share/classes/com/sun/jndi/rmi/registry/RegistryContext.BindingEnumeration 
Comments
Changeset: d222c186 Branch: master Author: Brent Christian <bchristi@openjdk.org> Date: 2025-02-04 22:37:31 +0000 URL: https://git.openjdk.org/jdk/commit/d222c186a6c5a282e9ef143fac3568351ad7b9d7
04-02-2025

Moving this to the javax.naming subcategory, as two of the changes are actually in JNDI's use of RMI and not RMI itself.
04-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23406 Date: 2025-02-01 00:11:31 +0000
01-02-2025