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.

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

              Created:
              Updated:
              Resolved: