You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Joerg Schaible (JIRA)" <ji...@apache.org> on 2006/07/13 06:29:31 UTC

[jira] Commented: (IO-17) [io] delete in FileUtils sometimes fails on Windows

    [ http://issues.apache.org/jira/browse/IO-17?page=comments#action_12420789 ] 

Joerg Schaible commented on IO-17:
----------------------------------

Same from me: Using System.gc() in a library method is a no-no! If you cannot delete the file, it simply means, someone did not close it. So that code should be fixed!

> [io] delete in FileUtils sometimes fails on Windows
> ---------------------------------------------------
>
>          Key: IO-17
>          URL: http://issues.apache.org/jira/browse/IO-17
>      Project: Commons IO
>         Type: Bug

>     Versions: 1.0
>  Environment: Operating System: Windows XP
> Platform: PC
>     Reporter: Wim Deblauwe
>      Fix For: 1.3

>
> The delete function in the FileUtils class will sometimes not delete a file or
> directory on windows. This is a known bug in the VM. Ant solves this by calling
> the GC explecitly and then wait some time. See
> http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/taskdefs/Delete.java?view=markup
> on how they do it.

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org