> >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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
