Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1060

NumberUtils.isNumber assumes number starting with Zero is octal

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.8
    • Component/s: lang.math.*
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pascalschumacher Pascal Schumacher
                Reporter:
                haugenjames James Haugen
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: