On Fri, 26 Aug 2022 12:56:50 GMT, Alan Bateman <al...@openjdk.org> wrote:
>> Сергей Цыпанов has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8292937: Move logic into VM side > > src/java.base/share/native/libjava/io_util.c line 71: > >> 69: jint nread = IO_Read(fd, buf, len); >> 70: if (nread == -1) { >> 71: JNU_ThrowIOExceptionWithLastError(env, "Read error"); > > These methods are specified to throw the more specific I/O exception > EOFException at EOF. You mean this must be changed to JNU_ThrowByName(env, "java/io/EOFException", NULL); ? ------------- PR: https://git.openjdk.org/jdk/pull/10031