commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <>
Subject RE: [Pool] What's left for a release?
Date Tue, 22 Apr 2003 17:28:22 GMT

Well, here we could split this into two issues. I do not like (1) and I am
in favor for (2).

(1) Which exact one field in GenericObjectPool would we need to change to
protected access to address our current problem? We could make this one
field protected in 2.0. We could then create our own subclass and define the
behavior we need. You would end up with GenericObjectPool that has one ivar
protected and all others private, which is oddly inconsistent and needs to
be explained in the docs. The next time a problem shows up which /could/
have been solved with a subclass, we are back to where we started: You could
subclass if only field f was protected instead of private. I claim this is
not the way to go.

(2) GenericObjectPool is a nice re-usable class, at runtime. As the Javadoc
states it is "configurable". My claim is that full reusability would be
better served by allowing advanced use of the class via subclassing. 

Here,, states: "A generic object
pool interface that clients and implementors can use to provide easily
interchangable pooling implementations." (Webmaster, interchangable ->

Well, we would like to be implementing our own pool to customize behavior in
GenericObjectPool, but we cannot. Hence the request to simply make fields
and methods that are now private protected. This would allow subclassing to
work, always. Why not solve this problem once? 

Thanks for taking the time to consider this issue, BTW.


PS: I cannot tell how many times this happens with third party code... GG.

-----Original Message-----
From: David Graham [] 
Sent: Tuesday, April 22, 2003 10:00 AM
Subject: RE: [Pool] What's left for a release?

Specifically, which fields do you want protected access for that you can't 
get to via accessors?


>From: Gary Gregory <>
>Reply-To: "Jakarta Commons Developers List" 
>To: 'Jakarta Commons Developers List' <>
>Subject: RE: [Pool] What's left for a release?
>Date: Tue, 22 Apr 2003 11:46:55 -0400
>Could you address why doing (2) only be an issue?
>It certainly would be fast task, I am volunteering of course!
>-----Original Message-----
>From: David Graham []
>Sent: Tuesday, April 22, 2003 8:44 AM
>Subject: RE: [Pool] What's left for a release?
>-1 on changing this for 2.0.  Struts needs this release soon.
> >Hello,
> >
> >Could we address
> >for
> >2.0?
> >
> >This is not a simple issue but it is very important for our application. 
> >see two issues raised in GenericObjectPool by 19192:
> >
> >(1) What is the "correct" or desired default behavior? If we need a 
> >very soon (to satisfy a Struts dependency for example), this would argue
> >for
> >not changing the locking behavior without some serious unit tests added 
> >this department. So, if time is of the essence, don't touch it, and we 
> >discuss it post-2.0.
> >
> >(2) If we consider that a goal for the class GenericObjectPool is that it
> >be
> >customizable on top of "configurable" (Javadoc comment), by which I mean
> >extendable/subclassable, then we should change the protection of fields 
> >methods from private to protected to allow for this to happen. This is 
> >the first time that we have seen the suggestion that a feature/bug could
> >have been addressed by subclassing but that in fact could not due to
> >field/method protection. (I am leaving aside the fact that one can change
> >any code in [pool] and recompile).
> >
> >Thoughts?
> >
> >Gary
> >
> >-----Original Message-----
> >From: James Mitchell []
> >Sent: Thursday, April 17, 2003 4:16 AM
> >To:
> >Subject: [Pool] What's left for a release?
> >
> >Initial search in bugzilla for pool turned up 3 bugs (ok, 2 bugs and 1
> >Enhancement).  The 2 bugs that were there have patches available.
> >
> >I was wondering if there were any specific reasons (other than
> >time/resources)
> >that those patches had not been committed.
> >
> >We are pushing for a RC2 over in the Struts camp and we depend on a new
> >release of Pool.  I'd like to help with this if I can.
> >
> >Your thoughts?
> >
> >
> >--
> >James Mitchell
> >Software Developer/Struts Evangelist
> >
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> >For additional commands, e-mail:
>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Add photos to your e-mail with MSN 8. Get 2 months FREE*.

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message