RFR 8196535: Remove support for pre-Java 6 non-JVM-wide file locking

Alan Bateman Alan.Bateman at oracle.com
Fri Feb 2 11:15:08 UTC 2018


On 01/02/2018 23:40, Brian Burkhalter wrote:
> https://bugs.openjdk.java.net/browse/JDK-8196535
> http://cr.openjdk.java.net/~bpb/8196535/webrev.00/
>
> This patch would remove support for the sun.nio.ch.disableSystemWideOverlappingFileLockCheck system property introduced in Java 6 to allow enabling pre-Java 6 behavior of checking for overlapping FileLocks opened on a FileChannel.
>
> Please note that this patch follows in sequence the patch proposed in [1] which still needs to pass review.
>
Good to see this going away. You can probably get rid of the static 
factory method (newFileLockTable) too if you also. Also the methods 
implemented the now-deleted interface no longer need to be public.

Minor nit, line break at FileChannel L1097 looks ugly so I assume you 
don't need that.

-Alan


More information about the nio-dev mailing list