From harmony-commits-return-1554-apmail-incubator-harmony-commits-archive=incubator.apache.org@incubator.apache.org Fri Mar 24 17:27:31 2006 Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 65148 invoked from network); 24 Mar 2006 17:27:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Mar 2006 17:27:29 -0000 Received: (qmail 83340 invoked by uid 500); 24 Mar 2006 17:27:21 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 83274 invoked by uid 500); 24 Mar 2006 17:27:20 -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 83250 invoked by uid 99); 24 Mar 2006 17:27:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2006 09:27:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2006 09:27:20 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 553A3D49FC for ; Fri, 24 Mar 2006 17:26:59 +0000 (GMT) Message-ID: <1593750044.1143221219299.JavaMail.jira@ajax> Date: Fri, 24 Mar 2006 17:26:59 +0000 (GMT) From: "George Harley (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-248) Using java.io.File.deleteOnExit() and System.runFinalizersOnExit(true) in the same application causes crash on exit. In-Reply-To: <1791944680.1143220902838.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-248?page=all ] George Harley updated HARMONY-248: ---------------------------------- Attachment: Support_DeleteOnExitWithRunFinalizersOnExitTest.java New class for adding to the support/src/test/java/tests/support directory. Snappy name for a class isn't it ? Best regards, George > Using java.io.File.deleteOnExit() and System.runFinalizersOnExit(true) in the same application causes crash on exit. > -------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-248 > URL: http://issues.apache.org/jira/browse/HARMONY-248 > Project: Harmony > Type: Bug > Components: Classlib > Environment: WinXP > Reporter: George Harley > Attachments: Harmony-248.txt, Support_DeleteOnExitWithRunFinalizersOnExitTest.java > > The dreaded sequel to HARMONY-222. While the one line fix for that prevents the test suite bringing about a rather undignified exit to the VM it doesn't really address the bigger picture of how to cope with user code that marks files as delete-on-exit and also makes use of the System.runFinalizersOnExit() method. Of course the latter method is deprecated but it won't stop some people from adopting it in their code. > I will attach a test case for dropping into tests/api/java/io/FileTest.java together with some minor tweaks to the build.xml and hyproperties.xml files in modules/luni/make/common that will enable this new test to run. A new support class will also be needed to help run part of the test in a separate VM. > My suggested fix for this is an update to one class in icu4jni-3.4.jar. I *think* that we are OK customising that jar for Harmony. > Best regards, > George -- 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