Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-331

BeanUtils.populate throws IllegalArgumentException when value is null.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.8.0
    • 1.8.1
    • Bean / Property Utils
    • None

    Description

      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{
      }
      }

      Attachments

        Issue Links

          Activity

            People

              niallp Niall Pemberton
              liaojinmei jliao
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: