commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Verbeeck <dirk.verbe...@pandora.be>
Subject Re: [Pool] Anybody using SoftReferenceObjectPool?
Date Thu, 13 May 2004 20:24:20 GMT
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


Mime
View raw message