[
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: [email protected]
For additional commands, e-mail: [email protected]