commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-881) NumberUtils.createNumber() Javadoc says it does not work for octal numbers
Date Wed, 27 Mar 2013 15:53:15 GMT

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

Sebb updated LANG-881:
----------------------

    Summary:  NumberUtils.createNumber() Javadoc says it does not work for octal numbers 
(was:  NumberUtils.createNumber() does not work for octal numbers)
    
>  NumberUtils.createNumber() Javadoc says it does not work for octal numbers
> ---------------------------------------------------------------------------
>
>                 Key: LANG-881
>                 URL: https://issues.apache.org/jira/browse/LANG-881
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.math.*
>    Affects Versions: 3.1
>            Reporter: Michiel Kalkman
>            Priority: Minor
>
> The javadoc for NumberUtils.createNumber() states:
> "Values with leading 0's will not be interpreted as octal."
> However,
> assertEquals(25, NumberUtils.createNumber("0025"));
> fails, because NumberUtils.createNumber("0025") returns 21.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message