Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8249627 Degrade Thread.suspend and Thread.resume
  3. JDK-8294320

Release Note: Thread.suspend/resume Changed to Throw UnsupportedOperationException

    XMLWordPrintable

Details

    Description

      The ability to suspend or resume a thread with the `Thread.suspend()` and `Thread.resume()` methods has been removed in this release. The methods have been changed to throw `UnsupportedOperationException`. These methods were inherently deadlock prone and have been deprecated since JDK 1.2 (1998). The corresponding methods in `ThreadGroup`, to suspend or resume a group of threads, were changed to throw `UnsupportedOperationException` in Java 19.

      Attachments

        Activity

          People

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: