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

Release Note: Thread.suspend/resume and ThreadGroup.suspend/resume are removed

    XMLWordPrintable

Details

    Description

      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 throw `NoSuchMethodError` if executed on JDK 23. It previously threw UnsupportedOperationException`.

      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: