You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2006/11/17 06:39:41 UTC
[jira] Commented: (HARMONY-2156) [classlib][luni]file.deleteOnExit
is not able to delete parent directroy even if the sub directory is marked
as deleteonexit also
[ http://issues.apache.org/jira/browse/HARMONY-2156?page=comments#action_12450631 ]
Tony Wu commented on HARMONY-2156:
----------------------------------
verified at 476051, thanks Richard.
> [classlib][luni]file.deleteOnExit is not able to delete parent directroy even if the sub directory is marked as deleteonexit also
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-2156
> URL: http://issues.apache.org/jira/browse/HARMONY-2156
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Tony Wu
> Assigned To: Richard Liang
> Attachments: harmony-2156.diff
>
>
> as title, and there is a test below, you will found the parent directory left when run on harmony
> import java.io.File;
> import java.io.IOException;
> public class TestDeleteOnExit {
> public static void main(String[] args) throws IOException {
> File f = new File(".\\parent\\");
> f.mkdir();
> f.deleteOnExit();
> f = new File(".\\parent\\child\\");
> f.mkdir();
> f.deleteOnExit();
> }
> }
--
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