-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P5
-
Affects Version/s: 26
-
Component/s: core-libs
-
None
-
generic
-
generic
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.
/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.
- relates to
-
JDK-8371748 Remove the (empty) ThreadPoolExecutor.finalize() method
-
- In Progress
-
- links to
-
Review(master)
openjdk/jdk/28278