[ 
https://issues.apache.org/jira/browse/BEANUTILS-472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14258799#comment-14258799
 ] 

Benedikt Ritter commented on BEANUTILS-472:
-------------------------------------------

Can you provide a minimal test case showing the problem please? What kind of 
converters do you use?

> AbstractConverter.convert does not work properly on Object array
> ----------------------------------------------------------------
>
>                 Key: BEANUTILS-472
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-472
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Locale BeanUtils / Converters
>    Affects Versions: 1.9.2
>            Reporter: Mehdi Afsari
>            Priority: Blocker
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> inside AbstractConverter.convert when convertArray method get called, if the 
> object is an object array, only the first element of that array will return 
> because of this block of code :
> return Array.get(value, 0)
> this willl leads data loss when the user is trying to convert an object array 
> so the better solution is to throw an exception that maybe this method does 
> not support object array or find a way to perform the convertion even for an 
> object array



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to