FilterOutputStream.close() throws exception from flush()

Bernd Eckenfels ecki at
Mon Oct 20 02:42:13 UTC 2014


sorry for coming up with that thread again, but I see that JDK-8042377
is hanging around with no action, and there was not yet any discussion
I have seen about why it would be robust to call this IAE.

I know there was quite some work done in 2013 to make this
self-supression IAE a bit less painfull (8012044: Give more information
about self-suppression from Throwable.addSuppressed) but it was never
really discussed why it is needed at all?


 Am Mon, 05 May 2014 15:47:40 +0100
schrieb Alan Bateman <Alan.Bateman at>:

> On 05/05/2014 15:40, Peter Levart wrote:
> >
> > Hi Alan,
> >
> > There has been a discussion about a year ago on this list:
> >
> > 
> >
> Yes, I remember this and also reviewed it for Joe. My point about it
> not coming up before was in the context of BufferedWriter/etc where
> close needs to flush. In that case then I think it would be more
> typically to throw a new IOException each time.
> I'll leave to Joe to comment on suggestion to drop self suppression.
> -Alan

More information about the core-libs-dev mailing list