You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Senén de Diego <sd...@wanadoo.es> on 2004/02/11 17:43:52 UTC
[beanutils][PATCH] handling Map instances in PropertyUtilsBean
Hello everybody,
This is my first post so I hope it makes sense...
As PropertyUtilsBean is currently implemented, calling
Map bean = new HashMap();
String property = "someProperty";
bean.put( property, someObject );
getNestedProperty( bean, property );
would work, but calling
getSimplePropery( bean, property );
would throw a NoSuchMethodException.
Is there any reason for that behavior?. IMHO that's not coherent, and I
believe
that Map instances should be handled inside
(g|s)etSimpleProperty, instead of within (g|s)etNestedProperty.
I attach a patch with what, in my opinion, should be changed.
Bye,
Senén de Diego