Proposal: Automatic Resource Management
Joshua Bloch
jjb at google.com
Sat Mar 7 09:48:56 PST 2009
Neal,
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).
Josh
On Sat, Mar 7, 2009 at 9:28 AM, Neal Gafter <neal at gafter.com> wrote:
> On Fri, Feb 27, 2009 at 10:29 PM, Joshua Bloch <jjb at google.com> 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