On 05/03/2008 08:40 AM, Paulo Levi wrote:
Is it possible to make the java.sql interface Connection, Statement and
ResultSet descend from closeable?

Not that I'm aware of, since SQLException doesn't extend IOException. That said, it might be nice to have a java.sql.Closeable for some future JDBC...

I guess once you have that, you could do a java.lang.Closeable with a close method that throws Exception, and derive both java.io.Closeable and java.sql.Closeable from that. :-)

Though I'm not 100% certain what impact inserting an interface above java.io.Closeable in the heirarchy would have on backwards compatibility.

- DML

Reply via email to