--- old/src/java.base/share/classes/java/nio/channels/FileChannel.java 2019-11-20 07:59:00.000000000 -0800 +++ new/src/java.base/share/classes/java/nio/channels/FileChannel.java 2019-11-20 07:59:00.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2018, 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 @@ -719,7 +719,7 @@ * size * * @throws IllegalArgumentException - * If the position is negative + * If the position is negative or the buffer is read-only * * @throws NonReadableChannelException * If this channel was not opened for reading