Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8368226

Remove Thread.stop

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • core-libs
    • b17

      The no-arg Thread.stop has been deprecated since JDK 1.2, deprecated for removal since JDK 18, and re-specified to throw UOE unconditionally since JDK 20. It is time to finally remove the method. The more evil sibling Thread.stop(Throwable) was removed in JDK 11.

      In terms of compatibility the code that uses Thread.stop will no longer compile. Code that was compiled to older releases and uses this method will throw NoSuchMethodError instead of UnsupportedOperationException.

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

              Created:
              Updated:
              Resolved: