diff --git a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java index 97b9538b1347..8ca59a07ddf2 100644 --- a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java +++ b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java @@ -36,7 +36,6 @@ import java.util.logging.Logger; import org.apache.lucene.index.IndexFileNames; import org.apache.lucene.util.Constants; -import org.apache.lucene.util.Unwrappable; /** * File-based {@link Directory} implementation that uses mmap for reading, and {@link @@ -322,9 +321,6 @@ public IndexInput openInput(String name, IOContext context) throws IOException { Path path = directory.resolve(name); final String resourceDescription = "MemorySegmentIndexInput(path=\"" + path.toString() + "\")"; - // Work around for JDK-8259028: we need to unwrap our test-only file system layers - path = Unwrappable.unwrapAll(path); - final boolean confined = context.hints().contains(ReadOnceHint.INSTANCE); Function toReadAdvice = c -> readAdvice.apply(name, c).orElse(Constants.DEFAULT_READADVICE);