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

This commit is contained in:
Uwe Schindler 2017-02-25 20:59:26 +01:00
parent 99e8ef2304
commit 6f3f6a2d66
1 changed files with 1 additions and 1 deletions

View File

@ -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());