You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Vikram Goyal <te...@craftbits.com> on 2004/05/13 04:43:05 UTC
[Pool] Anybody using SoftReferenceObjectPool?
Hi,
I am having trouble using SoftReferenceObjectPool and I think that it is a bug (http://issues.apache.org/bugzilla/show_bug.cgi?id=28918). If somebody has figured out a way to use it, I would appreciate some pointers.
Regards,
Vikram
Re: [Pool] Anybody using SoftReferenceObjectPool?
Posted by Dirk Verbeeck <di...@pandora.be>.
Hi,
I have looked at your testcase in issue 28918 and added some.
They all work for me. (sun jvm 1.4.1_02)
The for-loop causes an OutOfMemoryError but in the catch block the map
is already out of scope thus the pool can create a new object.
You can view my tests at:
http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-commons/pool/src/test/org/apache/commons/pool/impl/TestSoftRefOutOfMemory.java?rev=1.1
Unless you know a case that fails, I will close the issue as INVALID
or you can close it yourself.
Cheers
Dirk
Vikram Goyal wrote:
> Hi,
>
> I am having trouble using SoftReferenceObjectPool and I think that it is a bug (http://issues.apache.org/bugzilla/show_bug.cgi?id=28918). If somebody has figured out a way to use it, I would appreciate some pointers.
>
> Regards,
> Vikram
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org