Affects Version/s: 1.5.6
Fix Version/s: 1.5.7
When I call close() and borrowObject() concurrently with no objects in
the pool, close() will finish but borrowObject() is blocked forever.
The documentation of close() mentions that borrowObject() should fail
with IllegalStateException, so I would expect the waiting threads to
I will attach a test that exposes this problem. For this test, the
expected output is:
But when the bug manifests (almost always for this test), the output
The test does not finish, it just gets stuck after printing several
Is this a bug or am I reading the documentation wrongly? Is there
a patch for this?
|Fix Version/s||1.5.7 [ 12316353 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|