LUCENE-6169: Remove the Java 9 workaround, as change was reverted in OpenJDK source

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1715619 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2015-11-22 10:33:56 +00:00
parent 24bc7b1edd
commit 7bea628bf3
1 changed files with 1 additions and 2 deletions

View File

@ -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