From b8421e55fda9e2f9172eb7cdc482e972da425ac8 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 7 Nov 2014 06:31:39 -0500 Subject: [PATCH] Internal: temporarily ban buggy IOUtils methods with forbidden Closes #8375 --- dev-tools/forbidden/all-signatures.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-tools/forbidden/all-signatures.txt b/dev-tools/forbidden/all-signatures.txt index bb7a0d44360..ff069aeb620 100644 --- a/dev-tools/forbidden/all-signatures.txt +++ b/dev-tools/forbidden/all-signatures.txt @@ -3,3 +3,9 @@ java.net.URL#getPath() java.net.URL#getFile() java.io.File#delete() @ use Files.delete for real exception, IOUtils.deleteFilesIgnoringExceptions if you dont care + +# temporary situation, until we upgrade with LUCENE-6051 fix +# (at which point forbidden apis will fail and we remove this section) +@defaultMessage Use FileSystemUtils methods for now to workaround LUCENE-6051 +org.apache.lucene.util.IOUtils#deleteFilesIgnoringExceptions(java.lang.Iterable) +org.apache.lucene.util.IOUtils#deleteFilesIfExist(java.lang.Iterable)