commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "smildlzj (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEANUTILS-401) set array work not right in newest version
Date Mon, 17 Oct 2011 10:06:12 GMT
set array work not right in newest version
------------------------------------------

                 Key: BEANUTILS-401
                 URL: https://issues.apache.org/jira/browse/BEANUTILS-401
             Project: Commons BeanUtils
          Issue Type: Bug
          Components: Bean / Property Utils
    Affects Versions: 1.8.3
            Reporter: smildlzj


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]"));
	}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message