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

api/java_nio/file/Files/index.html#FilesTests[isWritable_02] started to fail

XMLWordPrintable

      Files::isWritable returns false for the created directory if run this code on Windows and a created directory is on a mounted network Solaris drive.

      MiniTest
      --------------------------------------------------
      File workDirAsFile = new File("Z:\\links\\fury-home\\temp\\wd_win\\test_wd");
      workDirAsFile.mkdir();
      System.out.println(Files.isWritable(workDirAsFile.toPath()));
      workDirAsFile.delete();
      --------------------------------------------------

      In this MiniTest "Z:" is mounted network drive with Solaris OS, "Z:\\links\\fury-home\\temp\\wd_win" has 777 permissions.
      Checked with b135.

      For details of failed test see JCK-7306336.

            evotchen Elena Votchennikova (Inactive)
            evotchen Elena Votchennikova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: