commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jliao (JIRA)" <j...@apache.org>
Subject [jira] Created: (BEANUTILS-331) BeanUtils.populate throws IllegalArgumentException when value is null.
Date Thu, 13 Nov 2008 00:29:44 GMT
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
            Priority: Critical


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.


Mime
View raw message