ObjectPool.invalidateObject(object) should throw an Exception if object is null
-------------------------------------------------------------------------------

                 Key: POOL-155
                 URL: https://issues.apache.org/jira/browse/POOL-155
             Project: Commons Pool
          Issue Type: Improvement
            Reporter: Sebb


ObjectPool.invalidateObject(object) should throw an Exception if object is 
null, otherwise the numActive count can get out of synch.

It's easy to do this by mistake, see:

http://markmail.org/thread/ya22ihmghejbfzme

Also, the documentation for ObjectPool needs to be updated to clarify that 
invalidateObject should only be called if the object failed, not the borrow.
[I'll do this shortly]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to