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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1
    • lang.math.*
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: