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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
