New JDBC feature in Java 7

For all things unrelated to minecraft.
Post Reply
User avatar
Devov
Posts: 48
Joined: Sun Jun 26, 2011 10:38 am

New JDBC feature in Java 7

Post by Devov »

We can now declare jdbc resources within the try clause ie: try(Statement stmt = con.createStatement()) { }
and they will be automatically closed even if there is an Exception :D

I'm guessing this is the convo Walt and Zaneo were having a while back when Doozy was steam IMing me about the
confusing "try{} catch{} finally{}" programmer chat in minecraft. I wish I'd read the change logs a month ago...
Doozy
Posts: 456
Joined: Wed Jun 22, 2011 11:51 am
Location: The True North

Re: New JDBC feature in Java 7

Post by Doozy »

Smells like nerd in here!
Zaneo
Posts: 171
Joined: Mon Aug 16, 2010 2:40 pm

Re: New JDBC feature in Java 7

Post by Zaneo »

Oh hey, yeah we've had that in C# for a while...
"That line you read, of course is mine, however, read so badly, it sounds like yours" -- Roman Noble
Post Reply