Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8320786 Remove ThreadGroup.stop
  3. JDK-8320889

Release Note: Removal of `ThreadGroup.stop`

XMLWordPrintable

      The method `java.lang.ThreadGroup.stop()` has been removed in this release. This inherently unsafe method was deprecated in JDK 1.2 (1998), deprecated for removal in Java 18, and re-specified/degraded in Java 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 now throw `NoSuchMethodError` instead of `UnsupportedOperationException` if executed on JDK 23 or newer.

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

              Created:
              Updated:
              Resolved: