You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "smildlzj (Created) (JIRA)" <ji...@apache.org> on 2011/10/17 12:06:12 UTC
[jira] [Created] (BEANUTILS-401) set array work not right in newest
version
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