[
https://issues.apache.org/jira/browse/LUCENE-5906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man reopened LUCENE-5906:
------------------------------
Looks like a backport problem...
{noformat}
-check-forbidden-all:
[forbidden-apis] Reading bundled API signatures: jdk-unsafe-1.7
[forbidden-apis] Reading bundled API signatures: jdk-deprecated-1.7
[forbidden-apis] Reading API signatures:
/home/hossman/lucene/4x_dev/lucene/tools/forbiddenApis/base.txt
[forbidden-apis] Loading classes to check...
[forbidden-apis] Scanning for API signatures and dependencies...
[forbidden-apis] Forbidden method invocation: java.io.File#delete() [use
Files.delete for real exception, IOUtils.deleteFilesIgnoringExceptions if you
dont care]
[forbidden-apis] in org.apache.lucene.benchmark.byTask.utils.FileUtils
(FileUtils.java:41)
[forbidden-apis] Forbidden method invocation: java.io.File#delete() [use
Files.delete for real exception, IOUtils.deleteFilesIgnoringExceptions if you
dont care]
[forbidden-apis] in org.apache.lucene.benchmark.byTask.utils.FileUtils
(FileUtils.java:51)
[forbidden-apis] Scanned 210 (and 445 related) class file(s) for forbidden API
invocations (in 0.09s), 2 error(s).
{noformat}
org.apache.lucene.benchmark.byTask.utils.FileUtils doesn't seem to exist in
trunk, so it was probably overlooked in the original patch & backport
> 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
> Fix For: 5.0, 4.11
>
> Attachments: LUCENE-5906.patch, LUCENE-5906.patch, LUCENE-5906.patch,
> LUCENE-5906.patch, 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.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]