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

NumberUtils does not handle upper-case hex: 0X and -0X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0, 3.0.1
    • 3.1
    • None
    • None

    Description

      NumberUtils.createNumber() should work equally for 0x1234 and 0X1234; currently 0X1234 generates a NumberFormatException

      Integer.decode() handles both upper and lower case hex.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: