APIdia Launch Partner
Top Description Fields Constructors
java.lang

public Class ThreadDeath

extends Error
Class Inheritance
Annotations
@Deprecated
since:20
forRemoval:true

Deprecated

for removal since 20.

Thread originally specified a "stop" method to stop a victim thread by causing the victim thread to throw a ThreadDeath. It was inherently unsafe and deprecated in an early JDK release. The stop method has since been removed and ThreadDeath is deprecated, for removal.

An instance of ThreadDeath was originally specified to be thrown by a victim thread when "stopped" with the Thread API.
Since
1.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ThreadDeath()

Constructs a ThreadDeath.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Error.serialVersionUID.

Annotations
@Serial

Constructor Detail

ThreadDeathback to summary
public ThreadDeath()

Constructs a ThreadDeath.