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

Linux style paths throw error

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Linux

      A DESCRIPTION OF THE PROBLEM :
      Path finalPath = Paths.get("/H:/outer", "inner");

      Causes java.nio.file.InvalidPathException: Illegal char <:> at index 2: /H:/outer\inner
      /H:/outer/inner is a valid path in linux environment and I am able to use new File("/H:/outer/inner");

      This issue occurs in all environments I believe.


        Attachments

          Activity

            People

            • Assignee:
              psonal Pallavi Sonal (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: