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

NumberUtils.isNumber and NumberUtils.createNumber resolve inconsistently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4
    • 3.5
    • lang.math.*
    • None

    Description

      In considering the issues LANG-1060, LANG-1040, LANG-1038, and LANG-992, it seems that there are times when NumberUtils.isNumber resolves to false while NumberUtils.createNumber, given the same input, does not throw an exception, returning a valid java.lang.Number. This inconsistency should be resolved either by making isNumber more lenient or createNumber more stringent.

      Attachments

        Issue Links

          Activity

            People

              chtompki Rob Tompkins
              chtompki Rob Tompkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: