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

NumberUtils#createNumber - does not allow for hex numbers to be larger than Long

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2
    • None
    • None

    Description

      NumberUtils#createNumber allows non-hex integers to be Integer, Long or BigInteger, however hex integers are only allowed to be Integer or Long; anything longer than 16 hex digits currently causes a NumberFormatException.

      It might be useful to allow longer hex numbers and convert them to BigInteger.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: