You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Sandy McArthur (JIRA)" <ji...@apache.org> on 2006/05/16 21:29:06 UTC
[jira] Closed: (POOL-7) [pool] GenericObjectPool is a LIFO, not a
FIFO implementation
[ 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