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 DB042D3CD for ; Mon, 12 Nov 2012 18:11:12 +0000 (UTC) Received: (qmail 87822 invoked by uid 500); 12 Nov 2012 18:11:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 87739 invoked by uid 500); 12 Nov 2012 18:11:12 -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 87570 invoked by uid 99); 12 Nov 2012 18:11:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2012 18:11:12 +0000 Date: Mon, 12 Nov 2012 18:11:12 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: <2069703439.101616.1352743872391.JavaMail.jiratomcat@arcas> In-Reply-To: <34792478.101467.1352741716445.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (LANG-854) NumberUtils#createNumber - does not allow for hex numbers to be larger than Long 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-854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495465#comment-13495465 ] Sebb commented on LANG-854: --------------------------- bq. What about binary numbers? That would the the subject of a separate JIRA. Note: binary numbers are not handled currently by any of the other conversion routines. Just noticed that Integer and Long can also be created from octal strings; also not (yet) supported for BigInteger. Should probably extend #createBigInteger to support octal and hex. > NumberUtils#createNumber - does not allow for hex numbers to be larger than Long > -------------------------------------------------------------------------------- > > Key: LANG-854 > URL: https://issues.apache.org/jira/browse/LANG-854 > Project: Commons Lang > Issue Type: Improvement > Reporter: Sebb > > NumberUtils#createNumber allows non-hex integers to be Integer, Long or BigInteger, however hex integers are only allowed to be Integer or Long; anything longer than 16 hex digits currently causes a NumberFormatException. > It might be useful to allow longer hex numbers and convert them to BigInteger. -- 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