[
https://issues.apache.org/jira/browse/DBUTILS-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Fabulich closed DBUTILS-52.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.2
Fixed in revision 752523.
> QueryRunner is not thread-safe
> ------------------------------
>
> Key: DBUTILS-52
> URL: https://issues.apache.org/jira/browse/DBUTILS-52
> Project: Commons DbUtils
> Issue Type: Bug
> Reporter: Dan Fabulich
> Assignee: Dan Fabulich
> Fix For: 1.2
>
>
> sebb pointed out: "QueryRunner Javadoc says the class is thread-safe.
> However it has a protected mutable variable DataSource which can also be
> set/got via public methods. If one thread sets the variable, another may not
> see the correct value, so the class is not thread-safe."
> We should make the DataSource final and remove the setter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.