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 580EFFFBA for ; Wed, 27 Mar 2013 16:33:17 +0000 (UTC) Received: (qmail 11779 invoked by uid 500); 27 Mar 2013 16:33:16 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 11678 invoked by uid 500); 27 Mar 2013 16:33:16 -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 11628 invoked by uid 99); 27 Mar 2013 16:33:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 16:33:16 +0000 Date: Wed, 27 Mar 2013 16:33:16 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-881) NumberUtils.createNumber() Javadoc says it does not work for octal numbers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13615464#comment-13615464 ] Sebb commented on LANG-881: --------------------------- Applied fixes: URL: http://svn.apache.org/r1461671 Log: LANG-881 NumberUtils.createNumber() Javadoc says it does not work for octal numbers Modified: commons/proper/lang/trunk/src/changes/changes.xml commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java URL: http://svn.apache.org/r1461654 Log: LANG-881 Enhance test so it also checks the exact values Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java > NumberUtils.createNumber() Javadoc says it does not work for octal numbers > --------------------------------------------------------------------------- > > Key: LANG-881 > URL: https://issues.apache.org/jira/browse/LANG-881 > Project: Commons Lang > Issue Type: Bug > Components: lang.math.* > Affects Versions: 3.1 > Reporter: Michiel Kalkman > Priority: Minor > > The javadoc for NumberUtils.createNumber() states: > "Values with leading 0's will not be interpreted as octal." > However, > assertEquals(25, NumberUtils.createNumber("0025")); > fails, because NumberUtils.createNumber("0025") returns 21. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira