hg: jdk9/sandbox/jdk: 6880737: (fs) FileLock constructors don't throw NPE if the channel argument is null

chris.hegarty at oracle.com chris.hegarty at oracle.com
Fri Jan 30 21:05:12 UTC 2015


Changeset: 9017c96ff81f
Author:    bpb
Date:      2015-01-30 12:56 -0800
URL:       http://hg.openjdk.java.net/jdk9/sandbox/jdk/rev/9017c96ff81f

6880737: (fs) FileLock constructors don't throw NPE if the channel argument is null
Summary: Throw IllegalArgumentException if the channel parameter is null
Reviewed-by: alanb

! src/java.base/share/classes/java/nio/channels/FileLock.java
+ test/java/nio/channels/FileLock/FileLockConstructor.java



More information about the jdk9-sandbox-changes mailing list