--- old/src/java.base/share/classes/java/nio/channels/ScatteringByteChannel.java 2019-11-20 07:59:01.000000000 -0800 +++ new/src/java.base/share/classes/java/nio/channels/ScatteringByteChannel.java 2019-11-20 07:59:01.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -107,6 +107,9 @@ * @throws ClosedChannelException * If this channel is closed * + * @throws IllegalArgumentException + * If any of the buffers is read-only + * * @throws AsynchronousCloseException * If another thread closes this channel * while the read operation is in progress @@ -144,6 +147,9 @@ * @throws ClosedChannelException * If this channel is closed * + * @throws IllegalArgumentException + * If any of the buffers is read-only + * * @throws AsynchronousCloseException * If another thread closes this channel * while the read operation is in progress