commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg Schaible (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IO-17) [io] delete in FileUtils sometimes fails on Windows
Date Thu, 13 Jul 2006 04:29:31 GMT
    [ 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


Mime
View raw message