Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-3960

[classlib][luni] File.canRead() returns false if File cannot be read

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • Windows

    Description

      File.canRead() return false currently on Harmony in Windows environment if file cannot be read due to NTFS security restrictions or some other reason. RI returns true in any case.

      From Javadoc spec for the canRead() method:
      "Returns: true if and only if the file specified by this abstract pathname exists and can be read by the application; false otherwise"

      Looks like the Harmony behavior is correct and should not be fixed.

      Attachments

        Issue Links

          Activity

            People

              zakha Alexei Zakharov
              zakha Alexei Zakharov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: