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/13 02:49:37 UTC
[jira] Created: (HARMONY-2156) [classlib][luni]file.deleteOnExit
can not delete parent directroy even if the sub directory is marked as
deleteonexit also
[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
[jira] Resolved: (HARMONY-2156) [classlib][luni]file.deleteOnExit
is not able to delete parent directroy even if the sub directory is marked
as deleteonexit also
Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2156?page=all ]
Richard Liang resolved HARMONY-2156.
------------------------------------
Resolution: Fixed
Hello Tony,
The patch is applied at revision r474705, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.
Best regards,
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
[jira] Updated: (HARMONY-2156) [classlib][luni]file.deleteOnExit
can not delete parent directroy even if the sub directory is marked as
deleteonexit also
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2156?page=all ]
Tony Wu updated HARMONY-2156:
-----------------------------
Attachment: harmony-2156.diff
would you please try my patch, thanks a lot.
> [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
> 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
[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
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (HARMONY-2156) [classlib][luni]file.deleteOnExit is
not able to delete parent directroy even if the sub directory is marked as
deleteonexit also
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2156?page=all ]
Tony Wu updated HARMONY-2156:
-----------------------------
Summary: [classlib][luni]file.deleteOnExit is not able to delete parent directroy even if the sub directory is marked as deleteonexit also (was: [classlib][luni]file.deleteOnExit can not delete parent directroy even if the sub directory is marked as deleteonexit also)
> [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
> 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
[jira] Assigned: (HARMONY-2156) [classlib][luni]file.deleteOnExit
is not able to delete parent directroy even if the sub directory is marked
as deleteonexit also
Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2156?page=all ]
Richard Liang reassigned HARMONY-2156:
--------------------------------------
Assignee: Richard Liang
> [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