Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 19735 invoked from network); 10 Nov 2006 03:26:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2006 03:26:08 -0000 Received: (qmail 1751 invoked by uid 500); 10 Nov 2006 03:26:09 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 1724 invoked by uid 500); 10 Nov 2006 03:26:09 -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 1665 invoked by uid 99); 10 Nov 2006 03:26:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 19:26:08 -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; Thu, 09 Nov 2006 19:25:57 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1D3737142F5 for ; Thu, 9 Nov 2006 19:25:37 -0800 (PST) Message-ID: <3985785.1163129137116.JavaMail.jira@brutus> Date: Thu, 9 Nov 2006 19:25:37 -0800 (PST) From: "Tony Wu (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Created: (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-Virus-Checked: Checked by ClamAV on apache.org [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 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