[
https://issues.apache.org/jira/browse/DBCP-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phil Steitz updated DBCP-322:
-----------------------------
Fix Version/s: (was: 1.4.1)
(was: 1.3.1)
2.0
This is a behavior change that could conceivably break some applications, so
pushing to 2.0
> CPDSConnectionFactory.validateObject(Object) ignores Throwable
> --------------------------------------------------------------
>
> Key: DBCP-322
> URL: https://issues.apache.org/jira/browse/DBCP-322
> Project: Commons Dbcp
> Issue Type: Bug
> Affects Versions: 1.2, 1.2.1, 1.2.2, 1.3, 1.4
> Reporter: Sebb
> Fix For: 2.0
>
>
> CPDSConnectionFactory.validateObject(Object) catches and ignores Throwable,
> which is a bit excessive. For example:
> {code}
> if (rset != null) {
> try {
> rset.close();
> } catch (Throwable t) {
> // ignore
> }
> }
> {code}
> close() can only throw SQLException, and that is all that should be ignored.
> In particular, ThreadDeath should never be ignored.
> Same applies to KeyedCPDSConnectionFactory.
> Basic[Managed]Datasource also catch Throwable, but rethrow it as
> SQLNestedException.
> This is a bit better, but there's still the problem with ThreadDeath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira