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

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Verification:
      Verified

      Description

      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`.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: