[ 
https://issues.apache.org/jira/browse/POOL-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454139#comment-17454139
 ] 

Phil Steitz commented on POOL-403:
----------------------------------

This is being picked up from the KeyedObjectPool interface javadoc.  I am not 
sure this is actually a bug.  In GKOP, this information is *always* available 
and it correctly returns 0 when it should.  The interface spec allows 
alternative implementations to return -1 when the info is not available.

> GenericKeyedObjectPool getNumActive and getNumIdle Javadoc do not match 
> behaviour
> ---------------------------------------------------------------------------------
>
>                 Key: POOL-403
>                 URL: https://issues.apache.org/jira/browse/POOL-403
>             Project: Commons Pool
>          Issue Type: Improvement
>    Affects Versions: 2.11.1
>            Reporter: KON-SUN-TACK
>            Priority: Minor
>
> In GenericKeyedObjectPool Javadoc, getNumActive(K key) and getNumIdle(K key) 
> states:
> "Returns a negative value if this information is not available."
> But it seems they actually return 0 instead.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to