From 1a006556e5999eb17d34bef1db08af0773d4e9b6 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Thu, 6 Sep 2018 14:01:25 +0200 Subject: [PATCH] LUCENE-8468: Add sliceDescription to the toString() of ByteBuffersIndexInput. This fixes test failures in TestLucene50CompoundFormat#testResourceNameInsideCompoundFile. --- .../src/java/org/apache/lucene/store/ByteBuffersIndexInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java b/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java index 7c87d2489dd..7b899b08166 100644 --- a/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java +++ b/lucene/core/src/java/org/apache/lucene/store/ByteBuffersIndexInput.java @@ -63,7 +63,7 @@ public final class ByteBuffersIndexInput extends IndexInput implements RandomAcc public ByteBuffersIndexInput slice(String sliceDescription, long offset, long length) throws IOException { ensureOpen(); return new ByteBuffersIndexInput(in.slice(offset, length), - "(sliced) offset=" + offset + ", length=" + length + " " + toString()); + "(sliced) offset=" + offset + ", length=" + length + " " + toString() + " [slice=" + sliceDescription + "]"); } @Override