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.