Re: Handling the throwable "ThreadDeath"
Gerald Murdock wrote:
markspace wrote:
Gerald Murdock wrote:
Which seems to me to be missing the point: apparently it IS broke, to
the point that someone is contemplating catching ThreadDeath and
doing other equally-dubious things to work around issues created by
the use of Thread.stop().
No
Yes. In fact he got this specific advice elsewhere in this thread
regarding handling TD:
[...]
My warning about the proper way to catch ThreadDeath is in no
way a proof that RVince planned to do so. His actual question was
"My question is how do I handle this? Can I just let it go
(the system seems to run fine afterwards -- but maybe I have
thread leakage?). How do you handle this "ThreadDeath"
throwable in a try-catch block, and what do you do with it
afterwards?"
.... which I think supports markspace's hypothesis that RVince has
stumbled across something unfamiliar and scary-looking and doesn't
know what (if anything) to do about it.
--
Eric.Sosman@sun.com