Sebb created POOL-275:
-------------------------

             Summary: BaseProxyHandler.pooledObject is not volatile or synch, 
so is not guaranteed to be safely published.
                 Key: POOL-275
                 URL: https://issues.apache.org/jira/browse/POOL-275
             Project: Commons Pool
          Issue Type: Bug
            Reporter: Sebb


BaseProxyHandler.pooledObject is not volatile or synch, so is not guaranteed to 
be safely published.

The class Javadoc does not state whether it is intended to be thread-safe or 
not, but I would expect the class might be called from multiple threads.

One solution would be to make the field volatile.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to