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 14:44:07 GMT
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>


Mime
View raw message