[
https://issues.apache.org/jira/browse/BEANUTILS-331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Niall Pemberton resolved BEANUTILS-331.
---------------------------------------
Resolution: Duplicate
Fix Version/s: 1.8.1
Assignee: Niall Pemberton
This has been fixed by BEANUTILS-339
http://svn.apache.org/viewvc?view=rev&revision=800648
I added a test for your particular situation
> BeanUtils.populate throws IllegalArgumentException when value is null.
> ----------------------------------------------------------------------
>
> Key: BEANUTILS-331
> URL: https://issues.apache.org/jira/browse/BEANUTILS-331
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Bean / Property Utils
> Affects Versions: 1.8.0
> Reporter: jliao
> Assignee: Niall Pemberton
> Priority: Critical
> Fix For: 1.8.1
>
>
> The following testCase fails on 1.8 but passes on 1.7:
> public class BeanUtilsTest extends TestCase
> {
> public void testBeanUtils() throws IllegalAccessException,
> InvocationTargetException{
> MyObject bean = new MyObject();
> HashMap params = new HashMap();
> params.put("value", null);
> BeanUtils.populate(bean, params);
> }
>
> public static class MyObject{
> MyValue value;
> public void setValue(MyValue value){
> this.value = value;
> }
> public MyValue getValue(){
> return value;
> }
> }
> public class MyValue{
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.