Time to put a stop to Thread.stop?

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 11 13:19:18 UTC 2013


On 25/05/2013 12:35, Alan Bateman wrote:
> On 24/05/2013 19:14, Martin Buchholz wrote:
>> :
>>
>> Alan, you're telling everyone there's no need for Thread.stop, but 
>> you are replacing usages in tests with calls to Unsafe, which is not 
>> available to normal code.  So you have a kind of moral obligation 
>> here to replace usages with "ordinary" java code.  There are other 
>> ways to do sneakyThrow, and perhaps a sneakyRethrow method should be 
>> added to the jdk test library.
> For these the tests then it shouldn't really matter but if you or Doug 
> would prefer if they are changed to use sneakyThrow then we can do that.
Martin has pushed updates to the 4 tests to the jsr166 CVS so I'll going 
to push these to jdk8/tl forest along with the Thread.stop changes.

-Alan



More information about the core-libs-dev mailing list