Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 47193 invoked from network); 30 Nov 2009 22:39:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Nov 2009 22:39:54 -0000 Received: (qmail 30964 invoked by uid 500); 30 Nov 2009 22:39:44 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 30942 invoked by uid 500); 30 Nov 2009 22:39:44 -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 30907 invoked by uid 99); 30 Nov 2009 22:39:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 22:39:43 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Mon, 30 Nov 2009 22:39:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9982B234C045 for ; Mon, 30 Nov 2009 14:39:20 -0800 (PST) Message-ID: <340087053.1259620760614.JavaMail.jira@brutus> Date: Mon, 30 Nov 2009 22:39:20 +0000 (UTC) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-6394) [classlib][archive] ZipFile.getInputStream implements available() differently to the RI In-Reply-To: <1774004970.1259581700811.JavaMail.jira@brutus> 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/HARMONY-6394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison resolved HARMONY-6394. ---------------------------------- Resolution: Fixed Fix Version/s: 5.0M12 Assignee: Tim Ellison Fixed in ARCHIVE module at repo revision r885602. > [classlib][archive] ZipFile.getInputStream implements available() differently to the RI > --------------------------------------------------------------------------------------- > > Key: HARMONY-6394 > URL: https://issues.apache.org/jira/browse/HARMONY-6394 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Tim Ellison > Assignee: Tim Ellison > Fix For: 5.0M12 > > Attachments: harmony-6394-2.patch, harmony-6394.patch > > > static final String NAME = "javax/swing/text/html/parser/html32.bdtd"; > public void test() throws IOException { > JarFile jar = new JarFile("swing.jar"); > ZipEntry ze = jar.getEntry(NAME); > InputStream is = jar.getInputStream(ze); > System.out.println("Size = " + ze.getSize()); > System.out.println("Available = " + is.available()); > jar.close(); > } > On Harmony it prints: > Size = 51140 > Available = 1 > On the RI it prints: > Size = 51140 > Available = 51140 > We have recently deviated from compatibility with the RI in this matter. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.