Apache Lucene open-source search software
improve exception message
Mike McCandlessd7beb0f1479d
diff --git a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.javaindex 0487400c776..b994d0d3036 100644--- a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java@@ -386,7 +386,7 @@ public class MMapDirectory extends FSDirectory {" [Please grant at least the following permissions: RuntimePermission(\"accessClassInPackage.sun.misc\") " +" and ReflectPermission(\"suppressAccessChecks\")]";} catch (ReflectiveOperationException | RuntimeException e) {- return "Unmapping is not supported on this platform, because internal Java APIs are not compatible to this Lucene version: " + e;+ return "Unmapping is not supported on this platform, because internal Java APIs are not compatible with this Lucene version: " + e;}}