[ 
https://issues.apache.org/jira/browse/BEANUTILS-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Niall Pemberton resolved BEANUTILS-72.
--------------------------------------

    Resolution: Invalid

The code you indicate is only called when the type of the property being set is 
not an array - so I don't believe this is the cause of your problem. There have 
been a couple of similar issues and I have improved the Converter 
implementations (see BEANUTILS-258) and changed how BeanUtils uses them - so I 
don't believe this should be an issue any longer.

> [beanutils] Problem with  setting properties which are strings array.
> ---------------------------------------------------------------------
>
>                 Key: BEANUTILS-72
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-72
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: ConvertUtils & Converters
>         Environment: Operating System: other
> Platform: PC
>            Reporter: ivan matmati
>             Fix For: 1.8.0
>
>
> In my work, I had to deal with indexed properties with Struts.Some of them, 
> using multibox, should be string arrays.
> But unfortunately, the setter I wrote was never called (It had a string array 
> as input parameter with the index as an other one).As I search the code, I 
> found what seemed a mistake in the code of BeanUtilsBean (version 1.7 of 
> commons bean utilities).
> In line 1003, in setProperty method :
> else if (value instanceof String[]) {
>                 newValue = getConvertUtils().convert(((String[]) value)[0], 
> type);
> I had to  correct it to 
> else if (value instanceof String[]) {
>                 newValue = getConvertUtils().convert(((String[]) value), 
> type);
> In no way, I want a string as newValue but the array itself.
> I hope it can help.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to