JDK-8368226 : Remove Thread.stop
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-09-22
  • Updated: 2025-09-22
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 26
26Unresolved
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8368370 :  
Description
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.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/27419 Date: 2025-09-22 08:13:55 +0000
22-09-2025