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

set array work not right in newest version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.3
    • 2.0.0
    • Bean / Property Utils
    • None

    Description

      i have testCase like as fllow,but it have exception in newest version,but in 1.6 version it's all right.

      public static void testBeanUtil() throws Exception{
      String[] st=new String[]

      {"this","is"}

      ;
      Map s1=new HashMap();
      Map s2=new HashMap();
      s1.put("mapProperty", s2);
      s1.put("mappedArray", st);
      PropertyUtils.setProperty(s1, "mapProperty.mappedArray[2]", "ce");
      Assert.assertEquals("ce", PropertyUtils.getProperty(s1, "mapProperty.mappedArray[2]"));
      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              smildlzj smildlzj
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: