Remove the (empty) ThreadPoolExecutor.finalize() method

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: None
    • Component/s: core-libs

      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.

            Assignee:
            Brent Christian
            Reporter:
            Brent Christian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: