JDK-8371682 : Suppress javac warning from ThreadPoolExecutorSubclassTest.java
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.concurrent
  • Affected Version: 26
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2025-11-12
  • Updated: 2025-11-24
  • Resolved: 2025-11-17
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 26
26 b25Fixed
Related Reports
Relates :  
Description
I found that there are some javac warning from test entry test/jdk/java/util/concurrent/tck/JSR166TestCase.java#default:

/home/yansendao/git/jdk/test/jdk/java/util/concurrent/tck/ThreadPoolExecutorSubclassTest.java:2010: warning: [removal] finalize() in ThreadPoolExecutor has been deprecated and marked for removal
            protected void finalize() {
                           ^
/home/yansendao/git/jdk/test/jdk/java/util/concurrent/tck/ThreadPoolExecutorSubclassTest.java:2011: warning: [removal] finalize() in ThreadPoolExecutor has been deprecated and marked for removal
                super.finalize();
                     ^
Note: /home/yansendao/git/jdk/test/jdk/java/util/concurrent/tck/JSR166TestCase.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 warnings


And there are two '@SuppressWarnings("removal")' in test/jdk/java/util/concurrent/tck/ExecutorsTest.java and test/jdk/java/util/concurrent/tck/JSR166TestCase.java is unnecessary.
Comments
Changeset: 44087ea5 Branch: master Author: SendaoYan <syan@openjdk.org> Date: 2025-11-17 13:48:52 +0000 URL: https://git.openjdk.org/jdk/commit/44087ea5d697deb3a7dd0e3c82f898dd9df1bfa3
17-11-2025

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

TPE finalize was re-specified in JDK 11 via JDK-8195862 to "do nothing". Prior to JDK 10 it was specified to shutdown. It may be time to remove the finalize method.
12-11-2025