FilterOutputStream.close() throws exception from flush()

Alex Lam S.L. alexlamsl at gmail.com
Fri Feb 10 13:09:10 UTC 2012


Hi there,

I have some code which calls FilterOutputStream.close(), which calls
the underlying OutputStream.flush() which throws IOException.

With previous versions of JavaSE, close() returns successfully without
any problems.

Using JDK8-b24, I get an IOException which is propagated from flush().

Is there any reason for this change in behaviour?


Regards,
Alex.



More information about the core-libs-dev mailing list