- All Implemented Interfaces:
Deprecated, for removal: This API element is subject to removal in a future version.
Thread.stop()was originally specified 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 ability to "stop" a thread with
Thread.stophas been removed and the
Thread.stopmethod changed to throw an exception. Consequently,
ThreadDeathis also deprecated, for removal.
An instance of
ThreadDeathwas originally specified to be thrown by a victim thread when "stopped" with
- See Also:
Constructor SummaryConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructs a
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
ThreadDeathpublic ThreadDeath()Deprecated, for removal: This API element is subject to removal in a future version.Constructs a