First of all, Hats off to the beanutils developers(and all of the commons 
developers for that matter). You have save alot of us so much time. Thank you.

Now onto my main reason for posting...

I've noticed a few other people having problems with the "class" attribute 
and the BeanUtils.describe() and BeanUtils.populate() methods. 
(http://www.mail-archive.com/commons-user@jakarta.apache.org/msg00170.html
and 
http://www.mail-archive.com/commons-user@jakarta.apache.org/msg00131.html)
I'm also having the same problem. The only solution I've come up with is to patch 
the source of ProperyUtils. Here is the diff for the changes I've made.

1151c1151,1154
<             throw new NoSuchMethodException("Unknown property '" +
---
>             // Seems that we blow up pulling "class" PropertyDescriptor
>             // so bypass it if descriptor is null
>             if (!"class".equals(name)) {
>                  throw new NoSuchMethodException("Unknown property '" +
1152a1156
>             }

I know this isn't the most elegant resolution, but it does seem to work. 
Can one of the developers of the beanutils api comment on the patch and if 
there is a better workaround/fix? 

Thanks,

Aaron


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to