You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/11/20 17:07:33 UTC

DO NOT REPLY [Bug 24864] New: - GenericKeyedObjectPoolFactory Config Constructor is incorrect

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24864>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24864

GenericKeyedObjectPoolFactory Config Constructor is incorrect

           Summary: GenericKeyedObjectPoolFactory Config Constructor is
                    incorrect
           Product: Commons
           Version: 1.1 Final
          Platform: All
               URL: http://jakarta.apache.org/commons/pool/apidocs/org/apach
                    e/commons/pool/impl/GenericObjectPoolFactory.html
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Pool
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jeff@jsheets.net
                CC: jeff@jsheets.net


The constructor GenericKeyedObjectPoolFactory(KeyedPoolableObjectFactory 
factory, GenericKeyedObjectPool.Config config) does not set the _maxTotal value 
correctly.  It should pass this value to the "master" constructor in the 
factory, but it inadvertantly was left out.  This leaves the _maxTotal set to 
GenericKeyedObjectPool.DEFAULT_MAX_TOTAL when it should be set to the passed in 
Config value.

The problem does not affect GenericObjectPoolFactory, it only affects the Keyed 
version.

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