On Mon, 8 Nov 2021 14:25:10 GMT, Сергей Цыпанов <d...@openjdk.java.net> wrote:
> This is a follow-up for https://github.com/openjdk/jdk/pull/4507, looks like > there are some cases that were not covered. > > Also this is related to https://github.com/openjdk/jdk/pull/3615 src/java.base/share/classes/java/io/ObjectInputStream.java line 1199: > 1197: public void readFully(byte[] buf, int off, int len) throws > IOException { > 1198: int endoff = off + len; > 1199: Objects.checkFromToIndex(off, endoff, buf.length); Why not using `Objects.checkFromIndexSize(off, len, buf.length);` just like in the previous change at line 1029 above? ------------- PR: https://git.openjdk.java.net/jdk/pull/6297