Apache Lucene open-source search software
LUCENE-6169: Remove the Java 9 workaround, as change was reverted in OpenJDK source
Uwe Schindler7bea628bf396
diff --git a/lucene/core/src/java/org/apache/lucene/util/IOUtils.java b/lucene/core/src/java/org/apache/lucene/util/IOUtils.javaindex c6d777f0fa7..510545f8250 100644--- a/lucene/core/src/java/org/apache/lucene/util/IOUtils.java+++ b/lucene/core/src/java/org/apache/lucene/util/IOUtils.java@@ -420,8 +420,7 @@ public final class IOUtils {file.force(true);} catch (IOException ioe) {if (isDir) {- // TODO: LUCENE-6169 - Fix this assert once Java 9 problems are solved!- assert (Constants.LINUX || Constants.MAC_OS_X) == false || Constants.JRE_IS_MINIMUM_JAVA9 :+ assert (Constants.LINUX || Constants.MAC_OS_X) == false :"On Linux and MacOSX fsyncing a directory should not throw IOException, "+"we just don't want to rely on that in production (undocumented). Got: " + ioe;// Ignore exception if it is a directory