commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy McArthur (JIRA)" <j...@apache.org>
Subject [jira] Closed: (POOL-7) [pool] GenericObjectPool is a LIFO, not a FIFO implementation
Date Tue, 16 May 2006 19:29:06 GMT
     [ http://issues.apache.org/jira/browse/POOL-7?page=all ]
     
Sandy McArthur closed POOL-7:
-----------------------------


> [pool] GenericObjectPool is a LIFO, not a FIFO implementation
> -------------------------------------------------------------
>
>          Key: POOL-7
>          URL: http://issues.apache.org/jira/browse/POOL-7
>      Project: Commons Pool
>         Type: Bug

>     Versions: 1.2 Final
>  Environment: Operating System: All
> Platform: All
>     Reporter: Thomas Schürger
>  Attachments: GenericObjectPool-FIFO.patch
>
> Hi,
> the GenericObjectPool implementation is (like the StackedObjectPool) a LIFO, not
> a FIFO implementation  as stated here:
> http://jakarta.apache.org/commons/pool/guide/index.html).
> When borrowObject() is called, the first available object is extracted from the
> pool using removeFirst(). When returnObject(obj) is called, the object is
> returned to the pool using addFirst(). I would expect that addLast() is used if
> this is supposed to be a FIFO implementation.
> But perhaps the developers guide is wrong, not the implementation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message