You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "James Haugen (JIRA)" <ji...@apache.org> on 2014/11/05 16:25:33 UTC
[jira] [Commented] (LANG-1060) NumberUtils.isNumber assumes number
starting with Zero is octal
[ 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)