Proposal: Automatic Resource Management

Bob Lee crazybob at crazybob.org
Fri Mar 6 16:13:59 PST 2009


On Fri, Mar 6, 2009 at 4:02 PM, Bob Lee <crazybob at crazybob.org> wrote:

> If you're not sure whether or not your impl does the right thing, play it
> safe and b) wrap the connection.
>

I should further point out that this language feature does not create the
need for a wrapper. You should have the wrapper already, unless of course
you enjoy writing the same rollback/close logic over and over. Connection
wrappers are also already necessary for other reasons:
http://weblogs.java.net/blog/crazybob/archive/2004/03/patch_leaky_con.html

Bob



More information about the coin-dev mailing list