Suppress javac warning from ThreadPoolExecutorSubclassTest.java

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P5
    • tbd
    • Affects Version/s: 26
    • Component/s: core-libs
    • None

      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.

            Assignee:
            Sendao Yan
            Reporter:
            Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: