diff -r b743968ad646 -r 512e7cc6ccce src/java.base/unix/classes/sun/nio/ch/SocketDispatcher.java --- a/src/java.base/unix/classes/sun/nio/ch/SocketDispatcher.java Fri Jan 25 11:15:00 2019 +0100 +++ b/src/java.base/unix/classes/sun/nio/ch/SocketDispatcher.java Sat Jan 26 14:02:35 2019 +0000 @@ -33,29 +33,33 @@ * for read and write operations. */ -class SocketDispatcher extends NativeDispatcher { +public class SocketDispatcher extends NativeDispatcher { - int read(FileDescriptor fd, long address, int len) throws IOException { + protected int read(FileDescriptor fd, long address, int len) + throws IOException { return FileDispatcherImpl.read0(fd, address, len); } - long readv(FileDescriptor fd, long address, int len) throws IOException { + protected long readv(FileDescriptor fd, long address, int len) + throws IOException { return FileDispatcherImpl.readv0(fd, address, len); } - int write(FileDescriptor fd, long address, int len) throws IOException { + protected int write(FileDescriptor fd, long address, int len) + throws IOException { return FileDispatcherImpl.write0(fd, address, len); } - long writev(FileDescriptor fd, long address, int len) throws IOException { + protected long writev(FileDescriptor fd, long address, int len) + throws IOException { return FileDispatcherImpl.writev0(fd, address, len); } - void close(FileDescriptor fd) throws IOException { + protected void close(FileDescriptor fd) throws IOException { FileDispatcherImpl.close0(fd); } - void preClose(FileDescriptor fd) throws IOException { + public void preClose(FileDescriptor fd) throws IOException { FileDispatcherImpl.preClose0(fd); } }