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

FC.lock(),tryLock() has "Parameters" section whereas both takes no parameters.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • None
    • sparc
    • solaris_8

      Documentation for FileChannel.lock() and tryLock() says..

      ------------------------------------------------------------------------------
      Parameters:
      position - The position within the file at which the locked region is to start; must be non-negative
      size - The size of the locked region; must be non-negative, and the sum position + size must be non-negative
      shared - true to request a shared lock, false to request an exclusive lock
      -------------------------------------------------------------------------------

      Whereas both methods take no parameters.

            mr Mark Reinhold
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: