You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "jliao (JIRA)" <ji...@apache.org> on 2008/11/13 01:29:44 UTC
[jira] Created: (BEANUTILS-331) BeanUtils.populate throws
IllegalArgumentException when value is null.
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.
[jira] Commented: (BEANUTILS-331) BeanUtils.populate throws
IllegalArgumentException when value is null.
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (BEANUTILS-331) BeanUtils.populate throws
IllegalArgumentException when value is null.
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ 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.