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
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.