On 6/3/18 8:55 AM, Alan Bateman wrote:
On 03/06/2018 13:11, David Holmes wrote:

Any suggestions as to how to do that in a practical and effective way?

"As if done by the highly-dangerous, long-deprecated and finally removed Thread.stop(Throwable)"

? ;-)

In all seriousness I hate to do anything that might suggest these are valid API's even for tools. Maybe we should deprecate them as well (separate RFE of course).
These date back to JPDA in JDK 1.2 (it was JVMDI at the time, pre-dates JVM TI) and would need research to see if there are debuggers or maybe fault injection tools are using it.

For Stuart's current effort then it will need a bit of text, maybe borrowing old spec where the operation was specified to "stop" a thread with an asynchronous exception. Warnings about the dangers are probably appropriate but these are of course interfaces that developers are unlikely to ever use directly.

The spec for com.sun.jdk.ThreadReference.stop(Throwable) seems sufficiently descriptive to stand alone if the @see Thread.stop(Throwable) cross reference is simply removed.

Are there any other changes that need to be done as part of this changeset?

s'marks

Reply via email to