Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 82717 invoked from network); 19 Mar 2007 13:55:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2007 13:55:04 -0000 Received: (qmail 7253 invoked by uid 500); 19 Mar 2007 13:55:01 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 7237 invoked by uid 500); 19 Mar 2007 13:55:01 -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 7219 invoked by uid 99); 19 Mar 2007 13:55:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 06:55:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 06:54:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 83AD7714071 for ; Mon, 19 Mar 2007 06:54:32 -0700 (PDT) Message-ID: <31832338.1174312472535.JavaMail.jira@brutus> Date: Mon, 19 Mar 2007 06:54:32 -0700 (PDT) From: "Leo Li (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3424) [classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry In-Reply-To: <7282745.1174298672476.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-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leo Li updated HARMONY-3424: ---------------------------- Attachment: patch-3424.diff Hi, Will somebody try this? Thanks, Leo > [classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-3424 > URL: https://issues.apache.org/jira/browse/HARMONY-3424 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Leo Li > Attachments: patch-3424.diff > > > Here is an example: > public void testGetCerificates() throws Exception > { > JarFile jarFile = new JarFile("bcprov.jar"); > JarEntry entry1 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class"); > JarEntry entry2 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class"); > InputStream in = jarFile.getInputStream(entry1); > byte[] data = new byte[1024]; > while(in.read(data)>=0); > in.close(); > > assertNotNull(entry1.getCertificates()); > assertNotNull(entry2.getCertificates()); > > } > RI passes. > Harmony fails. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.