Project Coin: JDBC 4.1 and try-with-resources

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 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 JDK 7 promoted builds in due course.

Comments:

Great news!
However I posted to share a video on project coin / JDK 7 release date (geek humor).
http://monisiqbal.blogspot.com/2010/09/behind-scenes-of-re-thinking-jdk-7.html

Posted by Monis Iqbal on September 14, 2010 at 01:23 AM PDT #

This feature is very useful and I recently blogged about it as build 112 makes it easier to test these things for real (http://bit.ly/9Gl0bJ).

-Arul

Posted by Arul on October 05, 2010 at 09:35 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

darcy

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
News

No bookmarks in folder

Blogroll