Ah, ByteBuffersDataInput isn't closeable, as explained by Michael above. Le mer. 2 avr. 2025 à 15:34, Bruno Roustant <bruno.roust...@gmail.com> a écrit :
> Recently I wondered the same question because > > BufferedIndexInput.SliceIndexInput.close() calls base.close() where base > is a clone of the original input (so in the end it's a noop?) > > ByteBuffersIndexInput.close() simply sets in = null but does not call > in.close() (shouldn't it do so?) >