harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2156) [classlib][luni]file.deleteOnExit can not delete parent directroy even if the sub directory is marked as deleteonexit also
Date Mon, 13 Nov 2006 01:49:37 GMT
[classlib][luni]file.deleteOnExit can not 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


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

        

Mime
View raw message