From owner-freebsd-java Fri Jun 2 8:41: 5 2000 Delivered-To: freebsd-java@freebsd.org Received: from firewall.ox.com (firewall.ox.com [129.77.1.1]) by hub.freebsd.org (Postfix) with ESMTP id A302A37B781 for ; Fri, 2 Jun 2000 08:40:54 -0700 (PDT) (envelope-from rcf@ox.com) Received: from firewall.ox.com (root@localhost) by firewall.ox.com with ESMTP id LAA04942 for ; Fri, 2 Jun 2000 11:40:52 -0400 (EDT) Received: from pur-wk-rfurphy.ny.ox.com (pur-wk-rfurphy.ny.ox.com [129.77.2.133]) by firewall.ox.com with ESMTP id LAA04935 for ; Fri, 2 Jun 2000 11:40:51 -0400 (EDT) Received: from ox.com (localhost.ny.ox.com [127.0.0.1]) by pur-wk-rfurphy.ny.ox.com (8.9.3/8.9.3) with ESMTP id LAA48145; Fri, 2 Jun 2000 11:40:50 -0400 (EDT) (envelope-from rcf@ox.com) Message-ID: <3937D582.66574C40@ox.com> Date: Fri, 02 Jun 2000 11:40:50 -0400 From: Rob Furphy X-Mailer: Mozilla 4.73 [en] (X11; U; FreeBSD 3.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Nate Williams Cc: freebsd-java@FreeBSD.ORG Subject: Re: can't remove directories? References: <200006020107.KAA30783@ares.trc.adelaide.edu.au> <3937D0EA.D9D1E8BE@ox.com> <200006021526.JAA08470@nomad.yogotech.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'd love this to have been already solved. File.delete() and File.deleteOnExit() are using two different mechanisms to perform the delete (I'm almost certain now). File.deleteOnExit() was introduced in Java 1.2 so this particular problem is -new- in the jvm code. The call to deleteOnExit puts your filename(or dir) into a list of things to be deleted when the JVM exits. That said, thanks for the encouragement Nate, I appreciate it. I'll look into this again if/when I have some time. Rob F. Nate Williams wrote: > > Your patch works for File.delete(). > > > > Here's another problem File.deleteOnExit() > > has the same problem...even with the patch applied. I've spent > > about 2 hours looking and I can't find a fix. Got to get to work > > now so I have to stop. > > These problems were fixed in JDK1.1.8, so you might search through the > patches and see what was done there. > > Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message