Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.8.3
-
None
-
Sun Java 6
Fedora 17
Description
public class BeanUtilsTest { @Test public void testSetPropertyWithNoIndexBetweenSquareBrackets() throws IllegalAccessException, InvocationTargetException { // GIVEN final SimpleBean bean = new SimpleBean(); final String propName = "property[]"; final String value = "myValue"; // WHEN BeanUtils.setProperty(bean, propName, value); // THEN // Should not fail } public static class SimpleBean { private String property; public String getProperty() { return property; } public void setProperty(String property) { this.property = property; } } }
Doesnt fail with BeanUtils 1.6.1
Fails with BeanUtils 1.8.3