commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: [PATCH] - PropertyUtils - bug 5639
Date Fri, 04 Jan 2002 19:22:06 GMT


On Fri, 4 Jan 2002, Scott Sanders wrote:

> Date: Fri, 4 Jan 2002 09:42:03 -0800
> From: Scott Sanders <ssanders@nextance.com>
> Reply-To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> Subject: RE: [PATCH] - PropertyUtils - bug 5639
>
> > From: Craig R. McClanahan [mailto:craigmcc@apache.org]
> > On Fri, 4 Jan 2002 bayard@generationjava.com wrote:
> >
> > > From: bayard@generationjava.com
> > > Is it just that no one is watching out for PropertyUtils, or the
> > > people who usually watch on it are busy?
> > >
> >
> > The latter.
> >
> > There is also an important philosophical issue here -- it
> > breaks conformance with standard JavaBeans definition of the
> > semantics for indexed properties, which does *not* include
> > List based support.  That's worth some reflective discussion
> > first, and (so far) I remain somewhat unconvinced that we
> > should deviate here.
>
>
> I would think that we *should* deviate.  I would assume that this would
> be very useful, even if it doesn't follow the standard JavaBeans
> definition.  In the end, it is all about easier access to an object.

IMHO, that is *not* the only goal of PropertyUtils.  It's original purpose
was to faithfully mirror JavaBeans semantics for properties accessed by
name (via reflection) instead of by direct method calls.

>  I
> think List access as an index adds value.  But the question is, what do
> you so if you want to set() an indexed List property?
>

According to the JavaBeans spec, there *is* no such thing as an indexed
List property :-).

But I take your point -- if you want to go ahead and add support for this
to getIndexedProperty() and setIndexedProperty(), I won't -1 it.


> Scott

Craig


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


Mime
View raw message