Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 54281 invoked from network); 15 Nov 2006 18:02:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2006 18:02:00 -0000 Received: (qmail 14054 invoked by uid 500); 15 Nov 2006 18:02:10 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 14033 invoked by uid 500); 15 Nov 2006 18:02:10 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 14022 invoked by uid 99); 15 Nov 2006 18:02:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2006 10:02:10 -0800 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; Wed, 15 Nov 2006 10:01:59 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 00546714323 for ; Wed, 15 Nov 2006 10:01:38 -0800 (PST) Message-ID: <20477053.1163613698970.JavaMail.jira@brutus> Date: Wed, 15 Nov 2006 10:01:38 -0800 (PST) From: "Paulex Yang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Resolved: (HARMONY-2138) [classlib][luni]different behavior when delete file In-Reply-To: <3985785.1163129137116.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 [ http://issues.apache.org/jira/browse/HARMONY-2138?page=all ] Paulex Yang resolved HARMONY-2138. ---------------------------------- Resolution: Fixed Leo, patch applied at revision r475338, thanks a lot for this enhancement. Tony, please verify the problem is fully resolved, thank you. > [classlib][luni]different behavior when delete file > --------------------------------------------------- > > Key: HARMONY-2138 > URL: http://issues.apache.org/jira/browse/HARMONY-2138 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Tony Wu > Assigned To: 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira