LUCENE-8468: Add sliceDescription to the toString() of ByteBuffersIndexInput.

This fixes test failures in TestLucene50CompoundFormat#testResourceNameInsideCompoundFile.
This commit is contained in:
Adrien Grand 2018-09-06 14:01:25 +02:00
parent 285b743a8b
commit 1a006556e5
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public final class ByteBuffersIndexInput extends IndexInput implements RandomAcc
public ByteBuffersIndexInput slice(String sliceDescription, long offset, long length) throws IOException { public ByteBuffersIndexInput slice(String sliceDescription, long offset, long length) throws IOException {
ensureOpen(); ensureOpen();
return new ByteBuffersIndexInput(in.slice(offset, length), return new ByteBuffersIndexInput(in.slice(offset, length),
"(sliced) offset=" + offset + ", length=" + length + " " + toString()); "(sliced) offset=" + offset + ", length=" + length + " " + toString() + " [slice=" + sliceDescription + "]");
} }
@Override @Override