commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (POOL-195) Generic[Keyed]ObjectPool.startEvictor() is overrideable yet is called from the ctor
Date Tue, 13 Dec 2011 00:37:30 GMT
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


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

        

Mime
View raw message