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

Jason Mehrens jason_mehrens at hotmail.com
Wed Jun 24 20:03:39 UTC 2015


Brian,


Not sure on this but, isn't it a little risky to import AtomicBoolean into such low level class?  I vaguely remember there was an issue with using AtomicXXX in java.lang.Thread.  Not sure if this case suffers the same fate.


Jason

----------------------------------------
> From: brian.burkhalter at oracle.com
> Subject: [9] RFR of 8042377: BufferedWriter and FilteredOutputStream.close throw IAE if flush and close throw equal exceptions
> Date: Wed, 24 Jun 2015 12:04:58 -0700
> To: core-libs-dev at openjdk.java.net
>
> 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