Proposal: Automatic Resource Management

Joshua Bloch jjb at google.com
Tue Mar 3 19:47:07 PST 2009


Mark,
I don't see a compelling need for it. When in doubt, leave it out.

            Josh

On Tue, Mar 3, 2009 at 7:39 PM, Mark Mahieu <markmahieu at googlemail.com>wrote:

> So would APIs be encouraged to define more specific Resource
> interfaces that narrow the thrown exception types ...
>
> interface SQLResource extends Resource {
>        void dispose() throws SQLException { }
> }
>
> interface SWTResource extends Resource {
>        void dispose() throws SWTException { }
> }
>
> etc?
>

I don't think there'd be any reason to do this.



More information about the coin-dev mailing list