commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (POOL-195) Generic[Keyed]ObjectPool.startEvictor() is overrideable yet is called from the ctor
Date Wed, 31 Dec 2014 16:29:13 GMT

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

Phil Steitz closed POOL-195.
----------------------------

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message