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

Path.of(String) fails with semicolon in filename

XMLWordPrintable

    • generic
    • windows_10

      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


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

              Created:
              Updated:
              Resolved: