Executors.newSingleThreadExecutor can use Cleaner to shutdown executor

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      Executors.newSingleThreadExecutor returns a delegating ExecutorService with a finalize method to shutdown the underlying TPE. This was introduced via JDK-6399443 in JDK 6. The finalizer can be trivially replaced with a Cleaner.

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: