DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=17663>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=17663


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From [EMAIL PROTECTED]  2005-11-11 05:50 -------
reply to comment #3)
> The problem still exists if the value is neither a Collection nor an array :
> In org/apache/commons/beanutils/BeanUtilsBean.java around line 560 (in 1.7.0):
> ...
>         } else {
>             String results[] = new String[1];
>             results[0] = value.toString();
>             return (results);
>         }
> ...
> I suggest replacing:
>             results[0] = value.toString();
> with:
>             results[0] = getConvertUtils().convert(value);

Thanks for the suggestion - I have implemeted something slightly different 
since what you propose would use the Converter for the type of the bean 
property (e.g. if the property is a short it would use the ShortConverter) 
whereas whats really required is to use the StringArrayConverter

    http://svn.apache.org/viewcvs?rev=332448&view=rev

marking this as FIXED.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to