-
Type:
CSR
-
Resolution: Unresolved
-
Priority:
P4
-
Component/s: core-libs
-
None
-
source, binary
-
minimal
-
-
Java API
-
SE
Summary
ThreadPoolExecutor.finalize() was (re)specified to do nothing in JDK 11. All finalize methods (along with the finalization mechanism itself) were deprecated for removal with JEP 421 in JDK 18.
Problem
The vestigial ThreadPoolExecutor.finalize() method serves no purpose, and recently caused a minor annoyance in test code (JDK-8371682).
Solution
The finalizer in ThreadPoolExecutor can be removed safely.
Specification
The spec change is best viewed in the attached specdiff, as the method spec is generated from verbiage inherited from Object.finalize(), plus local @implNote.
- csr of
-
JDK-8371748 Remove the (empty) ThreadPoolExecutor.finalize() method
-
- In Progress
-