commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Haugen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1060) NumberUtils.isNumber assumes number starting with Zero is octal
Date Wed, 05 Nov 2014 15:25:33 GMT

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

James Haugen commented on LANG-1060:
------------------------------------

In the financial industry, there are many instances of numbers that have multiple leading
zeros, i.e. account ids and ssns

> NumberUtils.isNumber assumes number starting with Zero is octal
> ---------------------------------------------------------------
>
>                 Key: LANG-1060
>                 URL: https://issues.apache.org/jira/browse/LANG-1060
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.math.*
>    Affects Versions: 3.3.2
>            Reporter: James Haugen
>             Fix For: 3.x
>
>
> The isNumber method assumes, that if the String being passed in doesn't have an 'X' at
the second char it is an octal number.



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

Mime
View raw message