-
Sub-task
-
Resolution: Delivered
-
P4
-
22
On Windows, `java.io.File` has changed in this release such that creating a `File` from a path string with a long path prefix (`\\\\?\\` or `\\\\?\\UNC`) will now strip the prefix. This change fixes several anomalies with file path parsing, helps with interoperability with native code when the file path comes from a native program that includes the long path prefix, and also allows methods such as `File::getCanonicalFile` to return the canonical file from input that initially contained a long path prefix. The change to `java.io.File` aligns the behavior with the newer API `java.nio.file.Path`.
The change may be observable to code that depends on `File::toString` returning a String that has the long path prefix.
This change has no impact to file access, the JDK will continue to use the long path prefix when accessing files that need the prefix.
The change may be observable to code that depends on `File::toString` returning a String that has the long path prefix.
This change has no impact to file access, the JDK will continue to use the long path prefix when accessing files that need the prefix.