You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2017/02/25 20:01:08 UTC

lucene-solr:branch_6x: Fix Java 9 b158+ problem (no compatibility layer for non expanded paths anymore)

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 1b91349fc -> a4e08399c


Fix Java 9 b158+ problem (no compatibility layer for non expanded paths anymore)


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/a4e08399
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a4e08399
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a4e08399

Branch: refs/heads/branch_6x
Commit: a4e08399ce89ffc262a21bf59a1494a560125ace
Parents: 1b91349
Author: Uwe Schindler <us...@apache.org>
Authored: Sat Feb 25 20:59:26 2017 +0100
Committer: Uwe Schindler <us...@apache.org>
Committed: Sat Feb 25 21:00:54 2017 +0100

----------------------------------------------------------------------
 .../core/src/test/org/apache/lucene/index/TestReadOnlyIndex.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a4e08399/lucene/core/src/test/org/apache/lucene/index/TestReadOnlyIndex.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestReadOnlyIndex.java b/lucene/core/src/test/org/apache/lucene/index/TestReadOnlyIndex.java
index 11e583e..9198002 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestReadOnlyIndex.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestReadOnlyIndex.java
@@ -46,7 +46,7 @@ public class TestReadOnlyIndex extends LuceneTestCase {
 
   @BeforeClass
   public static void buildIndex() throws Exception {
-    indexPath = Files.createTempDirectory("readonlyindex");
+    indexPath = Files.createTempDirectory("readonlyindex").toAbsolutePath();
     
     // borrows from TestDemo, but not important to keep in sync with demo
     Analyzer analyzer = new MockAnalyzer(random());