lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1715619 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
Date Sun, 22 Nov 2015 10:33:56 GMT
Author: uschindler
Date: Sun Nov 22 10:33:56 2015
New Revision: 1715619

URL: http://svn.apache.org/viewvc?rev=1715619&view=rev
Log:
LUCENE-6169: Remove the Java 9 workaround, as change was reverted in OpenJDK source

Modified:
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/IOUtils.java

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/IOUtils.java?rev=1715619&r1=1715618&r2=1715619&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/IOUtils.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/IOUtils.java Sun Nov 22 10:33:56
2015
@@ -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



Mime
View raw message