Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8368226 Remove Thread.stop
  3. JDK-8368370

Release Note: Thread.stop is removed

XMLWordPrintable

      The method `java.lang.Thread.stop()` has been removed in this release. This inherently unsafe method was deprecated in JDK 1.2 (1998), deprecated for removal in JDK 18, and was re-specified in JDK 20 to throw `UnsupportedOperationException` unconditionally. Code that uses this method will no longer compile. Code using this method that is compiled to older releases will throw `NoSuchMethodError` instead of `UnsupportedOperationException` if executed on JDK 26 or newer.

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

              Created:
              Updated:
              Resolved: