commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lavandowska <flanandow...@yahoo.com>
Subject RE: [PATCH] - PropertyUtils - bug 5639
Date Fri, 04 Jan 2002 22:25:11 GMT
> >See sections 7.2 and 8.3.3, which are very explicit about indexed
> properties being backed by an array, not a List.
> >
> 
> Understood.  Maybe we could just be pioneers here and maybe see this
> happen in an updated version of the JavaBeans spec?  I think it makes
> perfect sense myself, and if we 'innovate', maybe we can change the
> world ;-)

Keep in mind that the JavaBeans spec was written for JDK 1.1 and
predates Collections.  Also, reading the spec I noted that it says
"array" (as in generic array) and not Array (specific), but that makes
sense since java.util.Array didn't exist yet.

Finally, notice in the API doc for java.util.List it says:
"The List interface provides four methods for positional (indexed)
access to list elements. Lists (like Java arrays) are zero based."
so it clearly contains indexed properties ;-)

As Scott suggested, perhaps it's time for an update to the JavaBeans
spec (given its a few JDK's old).

Lance

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


Mime
View raw message