JDK-8286768 : Release Note: java.lang.ThreadGroup Is degraded
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 19
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2022-05-14
  • Updated: 2023-08-28
  • Resolved: 2022-05-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19Resolved
Related Reports
Relates :  
Description
Legacy `java.lang.ThreadGroup` has been degraded in this release. It is no longer possible to explicitly destroy a thread group. In its place, `ThreadGroup` is changed to no longer keep a strong reference to subgroups. A thread group is thus eligible to be GC'ed when there are no live threads in the group and nothing else is keeping the thread group alive.

The behavior of several methods, deprecated for removal in prior releases, are changed as follows:

- The `destroy` method does nothing.

- The `isDestroyed` method returns false.

- The `setDaemon` and `isDaemon` methods set/get a daemon status that is not used for anything.

- The `suspend`, `resume`, and `stop` methods throw `UnsupportedOperationException`.

For further details, see the [JEP 425, section java.lang.ThreadGroup](https://openjdk.java.net/jeps/425#java-lang-ThreadGroup).