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

Files.createDirectories throws exception with confusing message for root directories that exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b02

      Backports

        Description


        This issue came up on nio-discuss:
          http://mail.openjdk.java.net/pipermail/nio-discuss/2014-January/000710.html

        On OS X it appears to be caused by the underlying mkdir failing with EISADIR and this not translated into a FileAlreadyExistsException.

        On Windows it appears to be caused by the underlying CreateDIrectory failing with an access denied error.

        It does not appear to be an issue on Linux.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: