Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289610 Degrade Thread.stop
  3. JDK-8293684

11.1.3: Thread.stop no longer causes an asynchronous exception

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 19
    • specification

      Thread.stop is changed for Java 20 to throw UnsupportedOperationException unconditionally. ThreadGroup.stop was changed to throw UOE in Java 19. Combined, it means there is no longer any user facing API to "stop" a Thread.

      JLS 11.1.3 (and JVMS 2.10) will require the description of asynchronous exceptions to be updated.

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

              Created:
              Updated:
              Resolved: