Summary
Remove java.lang.ThreadGroup.stop
.
Problem
This inherently unsafe method and broken mechanism dates from JDK 1.0. The method was originally deprecated in JDK 1.2 (1998), and deprecated for removal in Java 18. The method was re-specified/degraded to throw UnsupportedOperationException
(UOE) in Java 20. It is time to finally remove this method from the API.
Solution
Remove java.lang.ThreadGroup.stop
.
This CSR does not propose to remove Thread.stop
as there are still a significant number of artifacts with code (or tests) that appear to use this method. A future CSR will likely remove this method.
Specification
Remove java.lang.ThreadGroup.stop
.
- csr of
-
JDK-8320786 Remove ThreadGroup.stop
-
- Resolved
-