[9] RFR of 8042377: BufferedWriter and FilteredOutputStream.close throw IAE if flush and close throw equal exceptions

Ivan Gerasimov ivan.gerasimov at oracle.com
Wed Jun 24 19:34:44 UTC 2015


Hi Brian!

I'm not sure if it's still needed to have @SuppressWarnings("try") 
before FilterOutputStream.close().

Sincerely yours,
Ivan

On 24.06.2015 22:04, Brian Burkhalter wrote:
> Please review at your convenience.
>
> Issue:	https://bugs.openjdk.java.net/browse/JDK-8042377
> Patch:	http://cr.openjdk.java.net/~bpb/8042377/webrev.00/
>
> The use of try-with-resources in FilteredOutputStream.close() is replaced with explicit handling of IOExceptions potentially thrown by flush() or close(). A test covering all cases is added.
>
> Thanks,
>
> Brian
>




More information about the core-libs-dev mailing list