Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 71852 invoked from network); 16 May 2006 19:29:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 May 2006 19:29:38 -0000 Received: (qmail 34713 invoked by uid 500); 16 May 2006 19:29:35 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 34627 invoked by uid 500); 16 May 2006 19:29:35 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 34616 invoked by uid 99); 16 May 2006 19:29:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 May 2006 12:29:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 May 2006 12:29:34 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9897B41000E for ; Tue, 16 May 2006 19:29:06 +0000 (GMT) Message-ID: <2491570.1147807746622.JavaMail.jira@brutus> Date: Tue, 16 May 2006 19:29:06 +0000 (GMT+00:00) From: "Sandy McArthur (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Closed: (POOL-7) [pool] GenericObjectPool is a LIFO, not a FIFO implementation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/POOL-7?page=3Dall ] =20 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=C3=BCrger > Attachments: GenericObjectPool-FIFO.patch > > Hi, > the GenericObjectPool implementation is (like the StackedObjectPool) a LI= FO, 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 fr= om the > pool using removeFirst(). When returnObject(obj) is called, the object is > returned to the pool using addFirst(). I would expect that addLast() is u= sed if > this is supposed to be a FIFO implementation. > But perhaps the developers guide is wrong, not the implementation. --=20 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