Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 961A110EB5 for ; Wed, 26 Mar 2014 21:28:38 +0000 (UTC) Received: (qmail 37246 invoked by uid 500); 26 Mar 2014 21:28:31 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 37079 invoked by uid 500); 26 Mar 2014 21:28:26 -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 36853 invoked by uid 99); 26 Mar 2014 21:28:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 21:28:14 +0000 Date: Wed, 26 Mar 2014 21:28:14 +0000 (UTC) From: "Adam Rauch (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LANG-992) NumberUtils#isNumber() returns false for "0.0", "0.4790", et al MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Adam Rauch created LANG-992: ------------------------------- Summary: NumberUtils#isNumber() returns false for "0.0", "0.4790", et al Key: LANG-992 URL: https://issues.apache.org/jira/browse/LANG-992 Project: Commons Lang Issue Type: Bug Components: lang.math.* Affects Versions: 3.3.1 Environment: Java 8, Windows 7 Reporter: Adam Rauch After upgraded from 3.1 to 3.3.1 it seems that isNumber(String str) returns false for decimal numbers with leading zeros. In other words: boolean ret = NumberUtils.isNumber("0.4790"); On 3.1, ret was true. In 3.3.1, ret is false. Guessing that LANG-972 is related... comment in the code states: // leading 0, but not hex, must be octal This is clearly a case where leading 0 does not mean hex. -- This message was sent by Atlassian JIRA (v6.2#6252)