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

Path.of(String) fails with semicolon in filename

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      openjdk version "17.0.3"

      A DESCRIPTION OF THE PROBLEM :
      If you pass string like "C:\data\file:test.pdf" to java.​nio.​file.​Path.of(String) then an exception will be triggered, this problem exists only on Windows 10, but on Linux it works fine.


      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: