From issues-return-5270-apmail-commons-issues-archive=commons.apache.org@commons.apache.org Tue Sep 09 14:40:37 2008 Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 48875 invoked from network); 9 Sep 2008 14:40:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 14:40:37 -0000 Received: (qmail 70442 invoked by uid 500); 9 Sep 2008 14:40:33 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 70345 invoked by uid 500); 9 Sep 2008 14:40:33 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 70331 invoked by uid 99); 9 Sep 2008 14:40:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 07:40:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 14:39:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E99A0234C1D1 for ; Tue, 9 Sep 2008 07:39:44 -0700 (PDT) Message-ID: <601296248.1220971184955.JavaMail.jira@brutus> Date: Tue, 9 Sep 2008 07:39:44 -0700 (PDT) From: "Waldo Rochow (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-457) NumberUtils createNumber thows a StringIndexOutOfBoundsException when only an "l" is passed in. In-Reply-To: <636758590.1220904104494.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629496#action_12629496 ] Waldo Rochow commented on LANG-457: ----------------------------------- James, No, I would actually expect a NumberFormatException. I haven't looked at the code again today, but I believe that that is what gets thrown if the String cannot be converted to a number for example if it is any other group of letters. Waldo > NumberUtils createNumber thows a StringIndexOutOfBoundsException when only an "l" is passed in. > ----------------------------------------------------------------------------------------------- > > Key: LANG-457 > URL: https://issues.apache.org/jira/browse/LANG-457 > Project: Commons Lang > Issue Type: Bug > Reporter: Waldo Rochow > > Seems to be similar to LANG-300, except that if you don't place a digit in front of the "l" or "L" it throws a StringIndexOutOfBoundsException instead. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.