commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BEANUTILS-331) BeanUtils.populate throws IllegalArgumentException when value is null.
Date Tue, 26 May 2009 14:39:45 GMT

    [ https://issues.apache.org/jira/browse/BEANUTILS-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713029#action_12713029
] 

Maarten Coene commented on BEANUTILS-331:
-----------------------------------------

Any progress about this issue?
It prevents us from using beanutils 1.8.0.

> 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