commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Hoffstätte (JIRA) <j...@apache.org>
Subject [jira] Commented: (POOL-91) StackObjectPool.borrowObject infinate loop when makeObject returns null
Date Fri, 15 Dec 2006 15:15:23 GMT
    [ http://issues.apache.org/jira/browse/POOL-91?page=comments#action_12458821 ] 
            
Holger Hoffstätte commented on POOL-91:
---------------------------------------

Hi - I've been following this thread for a while and understand the pros and cons of both
the lenient and strict approaches for borrowObject, though I'm undecded about the null vs.
exception behaviour. Anyway, my question is: wouldn't this be better handled by a decorated
factory instead of pluggable strategies, which will only make things more complicated? After
all this behaviour is very much a one-time/configuration thing.


> StackObjectPool.borrowObject infinate loop when makeObject returns null
> -----------------------------------------------------------------------
>
>                 Key: POOL-91
>                 URL: http://issues.apache.org/jira/browse/POOL-91
>             Project: Commons Pool
>          Issue Type: Bug
>            Reporter: Sandy McArthur
>         Assigned To: Sandy McArthur
>         Attachments: sample-borrow-fail-pool-policy.tar.bz2
>
>
> StackObjectPool.borrowObject has a infinate loop when makeObject returns null.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message