commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20538] New: - [lang] NumberUtils.isNumber allows illegal trailing characters
Date Fri, 06 Jun 2003 04:14:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20538>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20538

[lang] NumberUtils.isNumber allows illegal trailing characters

           Summary: [lang] NumberUtils.isNumber allows illegal trailing
                    characters
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: phil@steitz.com


This bug report is based on a post to commons-dev from Eric Pugh.

I am attaching a patch that includes the test case that Eric posted and two
others that confirm that the current code will accept strings with trailing
characters that are not type qualifiers.

The patch also adds a check to NumberUtils.isNumber() that causes these strings
to be rejected. Assuming that my understanding of the code is correct, this
patch should fix the problem without changing behavior on other strings. All
other tests succeed with the patch applied.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message