> From the bug report: > 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](https://bugs.openjdk.org/browse/JDK-8190324)). > > In JDK 18, finalize() was deprecated for removal > ([JDK-8276447](https://bugs.openjdk.org/browse/JDK-8276447)), after first > being "standard" deprecated in JDK 9 > ([JDK-8165641](https://bugs.openjdk.org/browse/JDK-8165641)). > > The finalize() method can safely be removed from ThreadPoolExecutor.
Brent Christian has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision: - Merge branch 'master' into 8371748-TPE.f10n - Remove ThreadPoolExecutor.finalize() ------------- Changes: - all: https://git.openjdk.org/jdk/pull/28311/files - new: https://git.openjdk.org/jdk/pull/28311/files/f166b51a..1984cd4d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=28311&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28311&range=00-01 Stats: 62613 lines in 849 files changed: 42714 ins; 14030 del; 5869 mod Patch: https://git.openjdk.org/jdk/pull/28311.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/28311/head:pull/28311 PR: https://git.openjdk.org/jdk/pull/28311
