blob: 8ff2fcd9fe3675b179c4acbbafa19953f867e200 [file] [log] [blame]
Dev Test for : https://glassfish.dev.java.net/issues/show_bug.cgi?id=667
[doesn't uphold the close() contract of java.sql.Connection]
Closing a connection multiple times should not throw any exception.
Further, duplicate close requests on a connection must be no-op.
[refer JDBC specification, java.sql.Connection javadoc]
--------------------------------------------------------------------------------------------------------------------------------------------
public void close() throws SQLException
Calling the method close on a Connection object that is already closed is a no-op.
--------------------------------------------------------------------------------------------------------------------------------------------
This dev tests tests whether multiple close on same connection work fine.