RFR 8180410: ByteArrayOutputStream should not throw IOExceptions

Brian Burkhalter brian.burkhalter at oracle.com
Thu Mar 15 00:48:20 UTC 2018


https://bugs.openjdk.java.net/browse/JDK-8180410
http://cr.openjdk.java.net/~bpb/8180410/webrev.00/

This proposed patch would make the following changes:

1. Add a new method writeBytes(byte[]) which writes all supplied bytes but does not throw IOE.
2. Document some previously undocumented exceptions which can be thrown by write(byte[],int,int) and writeTo(OutputStream).
3. s/@exception/@throws/.

The test is renamed from WriteBounds to Write with the addition of a test of write() and writeBytes().

A CSR will be filed later.

Thanks,

Brian


More information about the core-libs-dev mailing list