RFR 8191516: OutputStream.write(byte[], int, int) could have fewer parameter bounds checks

Brian Burkhalter brian.burkhalter at oracle.com
Tue Nov 21 00:53:56 UTC 2017


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

Change OutputStream.write(byte[],int,int) to use the same three parameter bounds checks used by InputStream.read(byte[],int,int) instead of the five checks currently used. This change is covered by the existing test jdk/java/io/OutputStream/WriteParams.java.

Thanks,

Brian


More information about the core-libs-dev mailing list