You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Steve Downey <st...@netfolio.com> on 2002/02/05 06:56:17 UTC

[PATCH] RE: Problems with commons-logging

Patches to fix the caught Throwables. And a test case. And change build.xml
to use junit 3.7. Fairly important, since this is supposed to be compatible
with jdk 1.4, and assert is now a keyword.



> -----Original Message-----
> From: Steve Downey 
> Sent: Monday, February 04, 2002 4:30 PM
> To: 'Jakarta Commons Developers List'
> Subject: RE: Problems with commons-logging
> 
> 
> BTW, another issue I just saw:
> catch(Throwable) {}
> 
> Is it really the intent to catch OutOfMemoryError, and do nothing?
> 
> Or, you really want to keep the thread from cleaning up when 
> thread.stop()
> is called (ThreadDeath)?
> 
> Throwable is not shorthand for "list of exceptions I mean to catch".
> Catching Throwable means "I'll handle every possible thing 
> that goes wrong,
> up to and including VM bugs, like InternalError"
> 
> Just because it seems unlikely to happen in the block of code you are
> calling, doesn't mean that it won't eventually happen.
> 
>