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] - [lang] NumberUtils.isNumber allows illegal trailing characters
Date Fri, 06 Jun 2003 06:03:41 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





------- Additional Comments From epugh@upstate.com  2003-06-06 06:03 -------
Interesting..  I don't know why I thought that.. I thought I had a testcase 
that proved that a-f failed, g-z worked!

At any rate, I added this testcase:
 val = "1z";
        assertTrue("isNumber(String) 15 Neg failed", !NumberUtils.isNumber
(val));
        assertTrue("isNumber(String)/createNumber(String) 15 Neg failed", !
checkCreateNumber(val));

and it tanked...  1z apparently is a number according to NumberUtils.isNumber!

---------------------------------------------------------------------
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