You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2014/08/26 17:01:12 UTC

[jira] [Commented] (LUCENE-5906) Use Files.delete instead of File.delete + made up exception

    [ https://issues.apache.org/jira/browse/LUCENE-5906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14110782#comment-14110782 ] 

Uwe Schindler commented on LUCENE-5906:
---------------------------------------

Yeah, we should fix this!

In the future we can also start to cut over everything to Path, because we can use "virtual filesystems" after that (e.g. put an index into a readonly ZIP file and let FSDirectory open it from inside the ZIP file using a Zip Filesystem Path - this may be useful for some - maybe...).

In my opinion, we should also add the "old" methods to forbidden-apis. And much later put whole "java.io.File" into forbidden!

> Use Files.delete instead of File.delete + made up exception
> -----------------------------------------------------------
>
>                 Key: LUCENE-5906
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5906
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-5906.patch
>
>
> We are on java7, if we cannot delete a file, this one returns a real exception as to why.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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