commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Fabulich (JIRA)" <>
Subject [jira] Created: (DBUTILS-52) QueryRunner is not thread-safe
Date Wed, 11 Mar 2009 16:54:50 GMT
QueryRunner is not thread-safe

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

View raw message