Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-747 NumberUtils does not handle Long Hex numbers
  3. LANG-752

Fix createLong() so it behaves like createInteger()

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Component/s: lang.math.*
    • Labels:
      None

      Description

      NumberUtils.createLong() does not handle hex numbers, but createInteger() handles hex and octal.

      Fix it by using Long.decode() instead of Long.valueOf().

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: