Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5041655 (ch) FileLock: negative param and overflow issues
  3. JDK-8288507

Release Note: FileChannel.lock/tryLock Changed to Treat Size 0 to Mean the Locked Region Goes to end of File

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      The method `java.nio.channels.FileChannel.lock(long position, long size, boolean shared)` has been changed such that a size value of zero means to lock all bytes from the specified starting position to the end of the file, regardless of whether the file is subsequently extended or truncated.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: