From commits-return-61010-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Mon Nov 30 23:12:45 2009 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 59033 invoked from network); 30 Nov 2009 23:12:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Nov 2009 23:12:44 -0000 Received: (qmail 901 invoked by uid 500); 30 Nov 2009 23:12:44 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 712 invoked by uid 500); 30 Nov 2009 23:12: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 619 invoked by uid 99); 30 Nov 2009 23:12:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 23:12:44 +0000 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; Mon, 30 Nov 2009 23:12:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9EE94234C045 for ; Mon, 30 Nov 2009 15:12:20 -0800 (PST) Message-ID: <797633849.1259622740634.JavaMail.jira@brutus> Date: Mon, 30 Nov 2009 23:12:20 +0000 (UTC) From: "Hudson (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783928#action_12783928 ] Hudson commented on HARMONY-6394: --------------------------------- Integrated in Harmony-1.5-head-linux-x86_64 #571 (See [http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/571/]) Fix for ([classlib][archive] ZipFile.getInputStream implements available() differently to the RI) > [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.