Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 36146 invoked from network); 15 Jun 2010 10:51:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jun 2010 10:51:49 -0000 Received: (qmail 63245 invoked by uid 500); 15 Jun 2010 10:51:49 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 62766 invoked by uid 500); 15 Jun 2010 10:51:45 -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 62754 invoked by uid 99); 15 Jun 2010 10:51:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 10:51:44 +0000 X-ASF-Spam-Status: No, hits=-1520.7 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 10:51:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5FApN6K008489 for ; Tue, 15 Jun 2010 10:51:24 GMT Message-ID: <23054108.3991276599083863.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 06:51:23 -0400 (EDT) From: "david cogen (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (CONFIGURATION-422) Configuration.getInt() should define its accepted inputs, and should also accept octal MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Configuration.getInt() should define its accepted inputs, and should also accept octal -------------------------------------------------------------------------------------- Key: CONFIGURATION-422 URL: https://issues.apache.org/jira/browse/CONFIGURATION-422 Project: Commons Configuration Issue Type: Improvement Components: Type conversion Reporter: david cogen Priority: Minor I can find no information about the format of the string that Configuration.getInt(String) accepts. I have determined by experimentation and examining the source that it accepts decimal integers, and hex integers if preceeded by "0x". This should be explained. Also, it is customary for functions which accept decimal and hex to also accept octal. A string with leading "0" should be parsed as octal. This should apply to getByte(), getShort(), and getLong() as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.