You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mark Thomas (Resolved) (JIRA)" <ji...@apache.org> on 2011/12/13 16:23:30 UTC

[jira] [Resolved] (POOL-195) Generic[Keyed]ObjectPool.startEvictor() is overrideable yet is called from the ctor

     [ https://issues.apache.org/jira/browse/POOL-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Thomas resolved POOL-195.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

I went with the final option.
                
> Generic[Keyed]ObjectPool.startEvictor() is overrideable yet is called from the ctor
> -----------------------------------------------------------------------------------
>
>                 Key: POOL-195
>                 URL: https://issues.apache.org/jira/browse/POOL-195
>             Project: Commons Pool
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 2.0
>
>
> The method Generic[Keyed]ObjectPool.startEvictor() is overrideable yet is called from the ctor - this can cause problems with subclasses, as the class may be only partially constructed when the method is invoked.
> Either the method should be final, or private, or the code could be extracted into a private method called by the ctor.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira