Got no answer on this one from commons-dev mailing list. Can someone here can help? -------------------------------------------
Maybe I'm misunderstanding BeanUtils.populate, but shouldn't this work????! The exception says IllegalArgumentException: type mismatch Tried this with both BeanUtils 1.2 and 1.3 with same results. ------------------------------------------- public class Company { private List m_locations = new ArrayList(); public String[] getLocation() { return (String[])m_locations.toArray(new String[0]); } public String getLocation( int index) { return (String)m_locations.get(index); } public void setLocation( String[] locations) { if (locations == null) { locations = new String[0]; } m_locations = Arrays.asList(locations); } public void setLocation( int index, String location) { m_locations.set(index, location); } public static void main(String[] args) throws Exception { Company gentoo = new Company(); Map properties = new HashMap(); properties.put("location", new String[] {"Blacksburg", "Richmond"}); BeanUtils.populate(gentoo, properties); // throws IllegalArgumentException! } } -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>