Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 16319 invoked from network); 3 Sep 2008 21:44:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2008 21:44:41 -0000 Received: (qmail 40049 invoked by uid 500); 3 Sep 2008 21:44:36 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 40033 invoked by uid 500); 3 Sep 2008 21:44:36 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 39808 invoked by uid 99); 3 Sep 2008 21:44:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2008 14:44:35 -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; Wed, 03 Sep 2008 21:43:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5650B234C1CE for ; Wed, 3 Sep 2008 14:43:44 -0700 (PDT) Message-ID: <733042812.1220478224352.JavaMail.jira@brutus> Date: Wed, 3 Sep 2008 14:43:44 -0700 (PDT) From: "Andrew Cornwall (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-5968) [pack200][classlib] NumberFormatException in NewAttributeBands.readNumber() In-Reply-To: <159108744.1220476424510.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/HARMONY-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628155#action_12628155 ] Andrew Cornwall commented on HARMONY-5968: ------------------------------------------ Even when unpacked using Sun's unpack and repacked with -E1, the error still exists (in the same place). Looks like the string it's parsing is: TB(7)[RCH](8,9)[PH]()[] > [pack200][classlib] NumberFormatException in NewAttributeBands.readNumber() > --------------------------------------------------------------------------- > > Key: HARMONY-5968 > URL: https://issues.apache.org/jira/browse/HARMONY-5968 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M7 > Environment: All Pack200 HEAD > Reporter: Andrew Cornwall > > I have a test case which causes a NumberFormatException when doing NewAttributeBands.readNumber(). It appears that digits is "" (an empty String) so the return line: > return Integer.parseInt((negative ? "-" : "") + new String(digits)) > is doing Integer.parseInt(""), which causes the exception. > Unfortunately, the test case is proprietary code, so I've sent it to Sian via email. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.