FYI: close() after finish() behaviour in BZip2CompressorOutputStream changed from 1.27.1 to 1.28.0

Oti <[email protected]> Tue, 30 Dec 2025 14:20:09 +0100
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <CACDaqRAM4wvQQwa=6xZx62JyNFyrW+cemWFdr_yP9facw2Uc4Q@mail.gmail.com>
--000000000000a7fbbb06472b38a6
Content-Type: text/plain; charset="UTF-8"

Hello

This is just to let you know that calling close() after finish() on a
BZip2CompressorOutputStream leads to a

java.lang.NullPointerException: Cannot read field "inUse" because
"dataShadow" is null


This used to pass silently on 1.27.1.

It is probably called bad style, but I found a project that had to remove
the close() calls after finish(). (
https://github.com/BisonSchweizAG/jython/pull/33).



Keep on the good work, and best wishes!

Oti.

--000000000000a7fbbb06472b38a6--