commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eduard Martinescu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (POOL-312) SoftReferenceObjectPool passes soft reference to factory for activation/validation
Date Tue, 21 Jun 2016 16:55:57 GMT

    [ https://issues.apache.org/jira/browse/POOL-312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15342167#comment-15342167
] 

Eduard Martinescu commented on POOL-312:
----------------------------------------

Actually it seems that the objects created by the factory are unwrapped by this pool.  This
basically kills any benefit of providing a custom pool.

> SoftReferenceObjectPool passes soft reference to factory for activation/validation
> ----------------------------------------------------------------------------------
>
>                 Key: POOL-312
>                 URL: https://issues.apache.org/jira/browse/POOL-312
>             Project: Commons Pool
>          Issue Type: Bug
>            Reporter: Eduard Martinescu
>
> Instead of passing the underlying object directly, it passes the soft reference wrapped
object.  This causes problems for factories that are unaware they are being used in this fashion.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message