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

StringUtils.isNumeric returns false on negative value

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: lang.*
    • Labels:
      None

      Description

      StringUtils.isNumeric returns false for negative values.

      So this unit test line will break the test:

      assertTrue(StringUtils.isNumeric("-1"));

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ajmoraal Arjan Moraal

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment