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 17:38:35 GMT


On Fri, 4 Jan 2002 bayard@generationjava.com wrote:

> Date: Fri, 4 Jan 2002 09:50:30 -0500 (EST)
> From: bayard@generationjava.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
>
> 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.

> Bay
>

Craig


> On Fri, 4 Jan 2002, Lavandowska wrote:
>
> > Since this is the third or fourth person in recent memory to submit a
> > patch for List support, will this ability ever be added?
> >
> > --- Arron <arron@keyboardmonkey.com> wrote:
> > > Object value = readMethod.invoke(bean, new Object[0]);
> > > if (!value.getClass().isArray()) {
> > > if (!(value instanceof java.util.List)) {
> > > throw new IllegalArgumentException("Property '" + name
> > > + "' is not indexed");
> > > } else {
> > > return ((java.util.List)value).get(index);
> > > }
> > > }
> > > return (Array.get(value, index));
> >
> >
> > =====
> > Lance Lavandowska
> > Http://www.brainopolis.com/
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send your FREE holiday greetings online!
> > http://greetings.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
>
>


--
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