commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DBCP-384) PoolingDriver.accessToUnderlyingConnectionAllowed is thread-hostile
Date Sat, 31 May 2014 04:06:01 GMT

     [ https://issues.apache.org/jira/browse/DBCP-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Phil Steitz closed DBCP-384.
----------------------------


> PoolingDriver.accessToUnderlyingConnectionAllowed is thread-hostile
> -------------------------------------------------------------------
>
>                 Key: DBCP-384
>                 URL: https://issues.apache.org/jira/browse/DBCP-384
>             Project: Commons Dbcp
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 2.0
>
>
> The field PoolingDriver.accessToUnderlyingConnectionAllowed is static but mutable; this
is inherently thread-hostile.
> It seems completely unnecessary for the field to be static; surely it could be an instance
variable?
> Better yet, drop the setter/getter and make the field final, set by the ctor.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message