commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BEANUTILS-64) [beanutils] ConvertUtils.convert returns 0 for Strings with leading blanks at converting String arrays to Integer arrays
Date Tue, 14 Nov 2006 23:41:39 GMT
    [ http://issues.apache.org/jira/browse/BEANUTILS-64?page=comments#action_12449863 ] 
            
Henri Yandell commented on BEANUTILS-64:
----------------------------------------

I think this issue is ready for FIXED then?

> [beanutils] ConvertUtils.convert returns 0 for Strings with leading blanks at converting
String arrays to Integer arrays
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-64
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-64
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: ConvertUtils & Converters
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: Rainer Dollinger
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> When using ConvertUtils.convert(String[], Class) with Integer as element type to
> convert an Array of number Strings to Integer, it returns Integers with value 0,
> if there is a blank at the start of the number.
> If the method ConvertUtils.convert  would do a String.trim() internally on the
> elements of the String array this could be avoided.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message