--- old/src/java.base/share/classes/java/nio/channels/ReadableByteChannel.java 2019-11-20 07:59:01.000000000 -0800 +++ new/src/java.base/share/classes/java/nio/channels/ReadableByteChannel.java 2019-11-20 07:59:00.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2001, 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 @@ -90,6 +90,9 @@ * @throws ClosedChannelException * If this channel is closed * + * @throws IllegalArgumentException + * If the buffer is read-only + * * @throws AsynchronousCloseException * If another thread closes this channel * while the read operation is in progress