Re: RFR: 8313739: ZipOutputStream.close() should always close the wrapped stream [v4]

2024-01-22 Thread Eirik Bjørsnøs
On Tue, 16 Jan 2024 18:18:38 GMT, Lance Andersen wrote: > This comment could use a bit of wordsmithing to indicate what "correct" means It's hard to write good prose for these tricky error scenarios. But just saying "correct" without defining it is a bit too lazy, yes :-) Please take a look

Re: RFR: 8313739: ZipOutputStream.close() should always close the wrapped stream [v4]

2024-01-16 Thread Lance Andersen
On Mon, 15 Jan 2024 10:26:53 GMT, Eirik Bjørsnøs wrote: >> Please consider this PR which makes `DeflaterOutputStream.close()` always >> close its wrapped output stream exactly once. >> >> Currently, closing of the wrapped output stream happens outside the finally >> block where `finish()` is

Re: RFR: 8313739: ZipOutputStream.close() should always close the wrapped stream [v4]

2024-01-16 Thread Jaikiran Pai
On Mon, 15 Jan 2024 10:26:53 GMT, Eirik Bjørsnøs wrote: >> Please consider this PR which makes `DeflaterOutputStream.close()` always >> close its wrapped output stream exactly once. >> >> Currently, closing of the wrapped output stream happens outside the finally >> block where `finish()` is

Re: RFR: 8313739: ZipOutputStream.close() should always close the wrapped stream [v4]

2024-01-15 Thread Eirik Bjørsnøs
> Please consider this PR which makes `DeflaterOutputStream.close()` always > close its wrapped output stream exactly once. > > Currently, closing of the wrapped output stream happens outside the finally > block where `finish()` is called. If `finish()` throws, this means the > wrapped stream