Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 4022 invoked from network); 19 Dec 2006 17:48:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2006 17:48:46 -0000 Received: (qmail 26804 invoked by uid 500); 19 Dec 2006 17:48:52 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 26598 invoked by uid 500); 19 Dec 2006 17:48:51 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 26587 invoked by uid 99); 19 Dec 2006 17:48:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 09:48:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 09:48:43 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3DF987142A6 for ; Tue, 19 Dec 2006 09:48:23 -0800 (PST) Message-ID: <20957324.1166550503251.JavaMail.jira@brutus> Date: Tue, 19 Dec 2006 09:48:23 -0800 (PST) From: "Jeremy Lemaire (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Created: (LANG-300) NumberUtils.createNumber throws NumberFormatException for one digit long MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org NumberUtils.createNumber throws NumberFormatException for one digit long ------------------------------------------------------------------------- Key: LANG-300 URL: http://issues.apache.org/jira/browse/LANG-300 Project: Commons Lang Issue Type: Bug Affects Versions: 2.2 Reporter: Jeremy Lemaire NumberUtils.createNumber throws a NumberFormatException when parsing "1l", "2l" .. etc... It works fine if you try to parse "01l" or "02l". The condition isDigits(numeric.substring(1)), line 455 return false as numeric.substring(1) is an empty string for "1l" -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org