Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8320532 Remove Thread/ThreadGroup suspend/resume
  3. JDK-8320708

Release Note: Removal of `Thread.suspend/resume` and `ThreadGroup.suspend/resume`

XMLWordPrintable

      The methods `java.lang.Thread.suspend()`, `java.lang.Thread.resume()`, `java.lang.ThreadGroup.suspend()`, and `java.lang.ThreadGroup.resume()` have been removed in this release. These deadlock prone methods were deprecated in JDK 1.2 (1998), deprecated for removal in Java 14, and re-specified/degraded in Java 19/20 to throw `UnsupportedOperationException` unconditionally. Code that uses these methods will no longer compile. Code using these methods that is compiled to older releases will now throw `NoSuchMethodError` instead of `UnsupportedOperationException` if executed on JDK 23 or newer.

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

              Created:
              Updated:
              Resolved: