lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1695865 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/CHANGES.txt lucene/core/ lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java
Date Fri, 14 Aug 2015 11:28:57 GMT
Author: rmuir
Date: Fri Aug 14 11:28:57 2015
New Revision: 1695865

URL: http://svn.apache.org/r1695865
Log:
LUCENE-6618: MMapDirectory.checkUnmapSupported is buggy

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/lucene/   (props changed)
    lucene/dev/branches/branch_5x/lucene/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_5x/lucene/core/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java

Modified: lucene/dev/branches/branch_5x/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/CHANGES.txt?rev=1695865&r1=1695864&r2=1695865&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/CHANGES.txt (original)
+++ lucene/dev/branches/branch_5x/lucene/CHANGES.txt Fri Aug 14 11:28:57 2015
@@ -27,6 +27,9 @@ Bug Fixes
 * LUCENE-6730: Hyper-parameter c is ignored in term frequency NormalizationH1.
   (Ahmet Arslan via Robert Muir)
 
+* LUCENE-6618: Properly set MMapDirectory.UNMAP_SUPPORTED when it is now allowed
+  by security policy. (Robert Muir)
+
 Other
 
 * LUCENE-6174: Improve "ant eclipse" to select right JRE for building.

Modified: lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java?rev=1695865&r1=1695864&r2=1695865&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java
Fri Aug 14 11:28:57 2015
@@ -166,7 +166,9 @@ public class MMapDirectory extends FSDir
     @Override
     public Boolean run() {
       try {
-        Class.forName("java.nio.DirectByteBuffer").getMethod("cleaner");
+        Class<?> clazz = Class.forName("java.nio.DirectByteBuffer");
+        Method method = clazz.getMethod("cleaner");
+        method.setAccessible(true);
         return true;
       } catch (Exception e) {
         return false;



Mime
View raw message