From commits-return-56046-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Thu Sep 11 03:59:05 2008 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 73258 invoked from network); 11 Sep 2008 03:59:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2008 03:59:05 -0000 Received: (qmail 20959 invoked by uid 500); 11 Sep 2008 03:59:02 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 20931 invoked by uid 500); 11 Sep 2008 03:59:02 -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 20922 invoked by uid 99); 11 Sep 2008 03:59:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2008 20:59:02 -0700 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, 11 Sep 2008 03:58:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4FB82234C1D9 for ; Wed, 10 Sep 2008 20:58:44 -0700 (PDT) Message-ID: <1710486863.1221105524325.JavaMail.jira@brutus> Date: Wed, 10 Sep 2008 20:58:44 -0700 (PDT) From: "Regis Xu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-5979) [classlib][luni] - File.deleteOnExit has different behaviours with RI 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] - File.deleteOnExit has different behaviours with RI --------------------------------------------------------------------- Key: HARMONY-5979 URL: https://issues.apache.org/jira/browse/HARMONY-5979 Project: Harmony Issue Type: Bug Components: Classlib Affects Versions: 5.0M7 Reporter: Regis Xu Fix For: 5.0M8 consider the following test: File f1 = new File("d1"); f1.mkdirs(); File f2 = new File("d1/d2"); f2.mkdirs(); File f3 = new File("d1/d2/f1"); f3.createNewFile(); f3.deleteOnExit(); f2.deleteOnExit(); f1.deleteOnExit(); RI leaves d1 and d2, while Harmony deletes all of the three files. If we change the order of invoke deleteOnExit to f2.deleteOnExit(); f3.deleteOnExit(); f1.deleteOnExit(); RI leaves d1, Harmony also detete all the three files. It seems RI delete files in the reverse order of invoking deleteOnExit. And spec doesn't mention which order should be used, is it a non-bug difference, or we should fix it to be compatible with RI? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.