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

(fs) Files:mismatch spec clarifications

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      This is to get clarification on following use cases w.r.to spec.
      1. what would be the expected output if Path (one or both) point to a directory, not a file.
         when i tried this Linux i am getting "java.io.IOException: Is a directory"
         In Windows it's an AccessDeniedException.
         
      2. What would be the expected output when one of the files doesn't exist and another one is present?

      3. java.lang.SecurityException - In the case of the default provider, and a security manager is installed, the checkRead method is invoked to check read access to both files.

      Does it apply to the case where two paths refer the same file and that file does not have read access?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bpb Brian Burkhalter
                Reporter:
                kganapureddy Krushnareddy Ganapureddy
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: