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

(spec) Confusion in FileLock specification

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      x86
    • OS:
      windows_2000

      Description

      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)
      ======================================================================

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Imported:
              Indexed: