db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendleton.de...@gmail.com>
Subject Re: Locking problem
Date Sun, 17 Oct 2010 18:24:14 GMT
>> a bit of resources. So it's good to keep in the habit of closing them
>> as soon as possible.
>
> OK; lots more try/finally blocks needed, then!

Unfortunately true, at least for now.

I've read that this will be improved in JDK 1.7 / JDBC 4.1, though:

http://aruld.info/introducing-try-with-resources-can-project-coin-become-crown-jewel-of-java-7/

That's still a bit off in the future, but keep an eye on it, as it
will be a valuable improvement when it arrives.

thanks,

bryan

Mime
View raw message