Proposal: Automatic Resource Management

Joshua Bloch jjb at
Sat Mar 7 09:48:56 PST 2009

Agreed.  I like the solution in the "Additional Features" section of the
proposal entitled "Retaining suppressed exceptions."  If there are no
compelling objections, I'll promote this to the body of the proposal in the
next revision (and fill in the details).


On Sat, Mar 7, 2009 at 9:28 AM, Neal Gafter <neal at> wrote:

> On Fri, Feb 27, 2009 at 10:29 PM, Joshua Bloch <jjb at> wrote:
> >            try { localVar.close(); } catch(Exception #ignore) { }
> Simply discarding exceptions seems wrong.  As a practical matter, if I
> were to use a construct like this I would want the "ignored"
> exceptions to be logged so that we don't sweep programming errors
> under the rug.

More information about the coin-dev mailing list