[jcifs] Infinite loop of error messages

Caldarale, Charles R Chuck.Caldarale at unisys.com
Tue Oct 3 17:38:18 GMT 2006


> From: jcifs at lists.samba.org On Behalf Of Michael B Allen
> Subject: Re: [jcifs] Infinite loop of error messages
> 
> I believe Thread.interrupt() is deprecated and with good reason.

It is neither deprecated nor dangerous, as the interrupt exception can
only occur in well-defined condtions when the target thread is already
blocked; normally, the target thread has to poll the isInterrupted()
method to see if anyone is trying to get its attention.

Perhaps you're thinking of Thread.suspend() or Thread.stop(), which
truly are abominations?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.


More information about the jcifs mailing list