Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 85342 invoked from network); 12 Mar 2008 16:10:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 16:10:19 -0000 Received: (qmail 61996 invoked by uid 500); 12 Mar 2008 16:10:15 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 61965 invoked by uid 500); 12 Mar 2008 16:10:14 -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 61939 invoked by uid 99); 12 Mar 2008 16:10:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 09:10:14 -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, 12 Mar 2008 16:09:45 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 96916234C09D for ; Wed, 12 Mar 2008 09:08:46 -0700 (PDT) Message-ID: <751632496.1205338126615.JavaMail.jira@brutus> Date: Wed, 12 Mar 2008 09:08:46 -0700 (PDT) From: "Andrew Cornwall (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5589) [classlib][pack200] AttributeLayout KS returning negative index In-Reply-To: <657945837.1205181286236.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-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Cornwall updated HARMONY-5589: ------------------------------------- Attachment: (was: com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.pack.gz) > [classlib][pack200] AttributeLayout KS returning negative index > --------------------------------------------------------------- > > Key: HARMONY-5589 > URL: https://issues.apache.org/jira/browse/HARMONY-5589 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Pack200 HEAD > Reporter: Andrew Cornwall > Assignee: Sian January > Fix For: 5.0M6 > > > When running Pack200 on the attached testcase, I get a: > Thread [main] (Suspended (exception Pack200Exception("Cannot have a negative range"))) > SegmentConstantPool.getValue(int, long) line: 65 > AttributeLayout.getValue(String, long, SegmentConstantPool) line: 76 > AttributeLayout.getValue(long, String, SegmentConstantPool) line: 198 > ClassBands.parseFieldAttrBands(InputStream) line: 243 > ClassBands.parseFieldBands(InputStream) line: 152 > ClassBands.unpack(InputStream) line: 141 > Segment.parseSegment(InputStream) line: 332 > Segment.unpack(InputStream, JarOutputStream) line: 352 > Archive.unpack() line: 146 > TestUnpack.main(String[]) line: 15 > This appears to be due to the fact that value is -116 at the following point in AttributeLayout.getValue(): > } else if (layout.startsWith("K")) { //$NON-NLS-1$ > char type = layout.charAt(1); > switch (type) { > case 'S': // String > --> return pool.getValue(SegmentConstantPool.CP_STRING, value); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.