JDBC 4.1 and try-with-resources

Joe Darcy joe.darcy at oracle.com
Fri Sep 10 16:19:27 PDT 2010


Hello.

I'm happy to report that Lance Andersen and the JDBC expert group have 
decided to support the new try-with-resources statement in JDBC 4.1. 
Lance just pushed a change set [1] for JDBC 4.1 that retrofits the 
AutoCloseable interface to the types:

    * java.sql.Connection
    * java.sql.ResultSet
    * java.sql.Statement

The change will be available in the JDK 7 promoted builds [2] in due course.

-Joe

[1] http://hg.openjdk.java.net/jdk7/tl/jdk/rev/c786a9c927fd
[2] http://dlc.sun.com.edgesuite.net/jdk7/binaries/index.html






More information about the coin-dev mailing list