Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 95842 invoked from network); 25 Jun 2009 19:46:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 19:46:19 -0000 Received: (qmail 57626 invoked by uid 500); 25 Jun 2009 19:46:30 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 57553 invoked by uid 500); 25 Jun 2009 19:46:30 -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 57544 invoked by uid 99); 25 Jun 2009 19:46:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 19:46:30 +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; Thu, 25 Jun 2009 19:46:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7B66F29A0015 for ; Thu, 25 Jun 2009 12:46:07 -0700 (PDT) Message-ID: <298212019.1245959167504.JavaMail.jira@brutus> Date: Thu, 25 Jun 2009 12:46:07 -0700 (PDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-2138) [classlib][luni]different behavior when delete file 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-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Hindess closed HARMONY-2138. --------------------------------- Closing as the fix has been verified. > [classlib][luni]different behavior when delete file > --------------------------------------------------- > > Key: HARMONY-2138 > URL: https://issues.apache.org/jira/browse/HARMONY-2138 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Tony Wu > Assignee: Paulex Yang > Attachments: patch.diff > > > this testcase passed on RI but failed on harmony. > > public void testDeleteJarFileUsingURLConnection() throws Exception { > String jarFileName = "file.jar"; > String entry = "text.txt"; > File file = new File(jarFileName); > FileOutputStream jarFile = new FileOutputStream(jarFileName); > JarOutputStream out = new JarOutputStream(new BufferedOutputStream( > jarFile)); > JarEntry jarEntry = new JarEntry(entry); > out.putNextEntry(jarEntry); > out.write(new byte[] { 'a', 'b', 'c' }); > out.close(); > URL url = new URL("jar:file:" + jarFileName + "!/" + entry); > URLConnection conn = url.openConnection(); > conn.setUseCaches(false); > InputStream is = conn.getInputStream(); > is.close(); > assertTrue(file.delete()); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.