[
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)