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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28638

Not possible to extend GenericObjectPool.returnObject() without affecting addObject()

           Summary: Not possible to extend GenericObjectPool.returnObject()
                    without affecting addObject()
           Product: Commons
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Pool
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Version 1.1 of GenericObjectPool implements addObject() by creating an object
and then using the public returnObject method. This makes it very difficult to
extend GenericObjectPool.

The solution would be using a third internal private method to implement the
"add to pool" part of addObject and returnObject.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to