commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Thomas (JIRA)" <>
Subject [jira] [Resolved] (POOL-104) Incorrect behavior for returnObject function.
Date Wed, 23 Mar 2011 19:30:06 GMT


Mark Thomas resolved POOL-104.

       Resolution: Won't Fix
    Fix Version/s:     (was: 3.0)

There are numerous issues with this, not least of which is if an object is returned to the
pool clients should no longer be using it so therefore should be unable to return it twice..

> Incorrect behavior for returnObject function.
> ---------------------------------------------
>                 Key: POOL-104
>                 URL:
>             Project: Commons Pool
>          Issue Type: Improvement
>    Affects Versions: 1.3
>         Environment: Windows XP + Eclipse3.2 + JDK1.5
>            Reporter: Phenix Huang
> Bussiness Needs
> I want to implement a special pool which can restore the active item automatically after
over time. After the item had been restored by the pool, if client still return the object
to pool(client still keep the reference thought the object had been passative) , the issue
will occurs.
> Test Case :
> 1. Client borrow an object from pool.
> 2. Client return the object to the pool. The active num will substract 1 and idle num
will plus 1.
> 3. If the client return the same object to the pool many times, the active num might
be negative.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message