Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 78322 invoked from network); 6 Jun 2003 04:12:12 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 6 Jun 2003 04:12:12 -0000 Received: (qmail 10393 invoked by uid 97); 6 Jun 2003 04:14:35 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 10386 invoked from network); 6 Jun 2003 04:14:35 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 6 Jun 2003 04:14:35 -0000 Received: (qmail 78062 invoked by uid 500); 6 Jun 2003 04:12:09 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 78051 invoked from network); 6 Jun 2003 04:12:09 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 6 Jun 2003 04:12:09 -0000 Received: (qmail 10380 invoked by uid 50); 6 Jun 2003 04:14:33 -0000 Date: 6 Jun 2003 04:14:33 -0000 Message-ID: <20030606041433.10379.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 20538] New: - [lang] NumberUtils.isNumber allows illegal trailing characters X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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