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

(spec) Confusion in FileLock specification

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.4.1
    • core-libs
    • x86
    • windows_2000

      Name: nt126004 Date: 01/29/2003


      FULL PRODUCT VERSION :
      doc problem, not JDK or runtime related

      FULL OPERATING SYSTEM VERSION : doc problem, not OS related


      A DESCRIPTION OF THE PROBLEM :
      These two sentences from FileLock contradict each other:

      They [FileLocks] are not suitable for controlling access to
      a file by multiple threads within the same virtual machine.

      File-lock objects are safe for use by multiple concurrent
      threads.

      Package java.nio.channels, FileLock class

      The second sentence should probably mention specifically that the class
      is Thread-safe.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.see java.nio.channels, FileLock class

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 180469)
      ======================================================================

            bpb Brian Burkhalter
            nthompsosunw Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: