-
Type:
Sub-task
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: None
-
Component/s: core-libs
-
None
Prior to JDK 11, ThreadPoolExecutor.finalize() was specified to
"[invoke] shutdown() when this executor is no longer referenced and it has no threads."
In JDK 11, ThreadPoolExecutor.finalize() was re-specified to do nothing, leaving the finalize() method empty. (JDK-8190324).
In JDK 18, finalize() was deprecated for removal (JDK-8276447), after first being "standard" deprecated in JDK 9 (JDK-8165641).
The finalize() method can safely be removed from ThreadPoolExecutor.
"[invoke] shutdown() when this executor is no longer referenced and it has no threads."
In JDK 11, ThreadPoolExecutor.finalize() was re-specified to do nothing, leaving the finalize() method empty. (
In JDK 18, finalize() was deprecated for removal (
The finalize() method can safely be removed from ThreadPoolExecutor.
- csr for
-
JDK-8371856 Remove the (empty) ThreadPoolExecutor.finalize() method
-
- Draft
-
- relates to
-
JDK-8371682 Suppress javac warning from ThreadPoolExecutorSubclassTest.java
-
- Open
-