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

(fs) Files:mismatch spec clarifications

    XMLWordPrintable

Details

    • b12

    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

              bpb Brian Burkhalter
              kganapureddy Krushnareddy Ganapureddy
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: