commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <>
Subject [jira] [Commented] (BEANUTILS-472) AbstractConverter.convert does not work properly on Object array
Date Thu, 25 Dec 2014 16:13:13 GMT


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:
>             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

View raw message