commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arron Bates <ar...@keyboardmonkey.com>
Subject [PATCH] - bug 5639
Date Thu, 03 Jan 2002 23:47:19 GMT
  Attached is the diff for the patch on PropertyUtils.java.
The code is tested and works great.

Or if that don't work (heaven forbid), replace lines 419 to 423 
(inclusive) with the code below.


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



Mime
View raw message