commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Created: (POOL-155) ObjectPool.invalidateObject(object) should throw an Exception if object is null
Date Fri, 15 Jan 2010 11:49:54 GMT
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.


Mime
View raw message