Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.3
-
None
-
None
-
Windows XP + Eclipse3.2 + JDK1.5
Description
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.