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

(doc) FileChannel.lock() and tryLock() documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • fcs
    • sparc
    • solaris_7, solaris_8
    • Verified

      public final FileLock lock() throws IOException

      Signature of this (overloaded) method doesn't have any parameters.
      List of parameters (position, size, shared) need to be removed from API documentation.

      Also, IllegalArgumentException is listed in Throws block. This may be unnecessary.

      ditto for method
      public final FileLock tryLock() throws IOException

            mr Mark Reinhold
            hvilekar Harshad Vilekar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: