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:55:57 GMT


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

> Date: Fri, 4 Jan 2002 14:31:19 -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
>
> >
> > 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.
>
> I've not been keeping up well, but it seems to me that JavaBeans does have
> an indexed property. Now if the question is whether they're implemented as
> an array or a List, I would think that the JavaBean spec really shouldn't
> be caring about that.
>

Whether we like it or not, the JavaBeans spec *does* care about that:

    http://java.sun.com/products/javabeans/docs/beans.101.pdf

See sections 7.2 and 8.3.3, which are very explicit about indexed
properties being backed by an array, not a List.

> Just a view.
>
> Bay
>

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