Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 36154 invoked from network); 1 May 2008 16:40:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2008 16:40:44 -0000 Received: (qmail 4972 invoked by uid 500); 1 May 2008 16:40:46 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 4959 invoked by uid 500); 1 May 2008 16:40:46 -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 4948 invoked by uid 99); 1 May 2008 16:40:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 09:40:46 -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; Thu, 01 May 2008 16:40:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 15C2A234C110 for ; Thu, 1 May 2008 09:36:56 -0700 (PDT) Message-ID: <765061638.1209659816088.JavaMail.jira@brutus> Date: Thu, 1 May 2008 09:36:56 -0700 (PDT) From: "Andrew Cornwall (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-5796) [classlib][pack200] Pack200UnpackerAdapter still using Segment In-Reply-To: <1797243678.1209157915761.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-5796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Cornwall closed HARMONY-5796. ------------------------------------ I must have been really out of it that day! Patch applied was better than expected. Thanks. > [classlib][pack200] Pack200UnpackerAdapter still using Segment > -------------------------------------------------------------- > > Key: HARMONY-5796 > URL: https://issues.apache.org/jira/browse/HARMONY-5796 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M5 > Environment: All pack200 Java 5 > Reporter: Andrew Cornwall > Assignee: Sian January > Fix For: 5.0M6 > > Attachments: main.patch > > > The Java5 Pack200UnpackerAdapter still uses the old Segment code instead of the new Archive code. Here's a quick patch: > Index: C:/harmony/pack200workspace/Pack200 working/src/main/java5/org/apache/harmony/unpack200/Pack200UnpackerAdapter.java > =================================================================== > --- C:/harmony/pack200workspace/Pack200 working/src/main/java5/org/apache/harmony/unpack200/Pack200UnpackerAdapter.java (revision 651261) > +++ C:/harmony/pack200workspace/Pack200 working/src/main/java5/org/apache/harmony/unpack200/Pack200UnpackerAdapter.java (working copy) > @@ -46,13 +46,8 @@ > "Must specify both input and output streams"); > completed(0); > try { > - while (in.available() > 0) { > - new Segment().unpack(in, out); > - out.flush(); > - } > - } catch (Pack200Exception e) { > - throw new IOException("Failed to unpack Jar:" + String.valueOf(e)); > - } > + Archive archive = new Archive(in, out); > + archive.unpack(); > completed(1); > in.close(); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.