Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6880737 (fs) FileLock constructors don't throw NPE if the channel argument is null
  3. JDK-8175506

Release Note: java.nio.channels.FileLock constructors don't throw NPE if the channel argument is null

XMLWordPrintable

    • Verified

      The `java.nio.channels.FileLock` constructors will now throw a `NullPointerException` if called with a `null` `Channel` parameter. To avoid an unexpected behavior change, subclasses of FileLock should therefore ensure that the `Channel` they pass to the superclass constructor is non-`null`.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: