Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4510562

(fs spec) FileChannel.lock/tryLock spec should describe channel preconditions

XMLWordPrintable

    • generic, x86
    • generic, windows_xp

      The spec should be revised to say that an exclusive lock requires a channel that
      is open for both reading and writing, and that a NonReadableChannelException or
      a NonWritableChannelException will be thrown, as appropriate, if this condition
      does not hold.
       
      The spec should be revised to say that a shared lock requires a channel that is
      open for reading (and possibly writing), and that a NonReadableChannelException
      will be thrown if this condition does not hold.
       
      -- mr@eng 2001/8/10

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: