[9] RFR of 8075222: RandomAccessFile.getChannel changed to non-final in error

Brian Burkhalter brian.burkhalter at oracle.com
Mon Mar 16 19:59:50 UTC 2015


Please review at your convenience.

Issue:	https://bugs.openjdk.java.net/browse/JDK-8075222
Diff:

--- a/src/java.base/share/classes/java/io/RandomAccessFile.java
+++ b/src/java.base/share/classes/java/io/RandomAccessFile.java
@@ -276,7 +276,7 @@
      * @since 1.4
      * @spec JSR-51
      */
-    public FileChannel getChannel() {
+    public final FileChannel getChannel() {
         FileChannel fc = this.channel;
         if (fc == null) {
             synchronized (this) {

Reinstate ‘final’ in method declaration.

Thanks,

Brian




More information about the core-libs-dev mailing list