8207690: Parsing API for classpath and similar path strings
stuart.marks at oracle.com
Tue Sep 11 20:54:05 UTC 2018
> 110 * Returns a list of path strings parsed from a string with empty paths removed.
The Unix shell and the Java launcher's -classpath processing treat an empty path
entry as the current working directory. (I don't know what happens on Windows.)
Removing empty paths thus would seem to change the semantics of search paths, at
least on some systems.
On 9/10/18 11:16 AM, Roger Riggs wrote:
> Please review the API and implementation of an API to parse Path strings.
> Two methods are added to java.nio.file.Paths to parse a string using the path
> separator delimiter
> and return either List<String> or List<Path>. Empty path elements are ignored.
> For compatibility with current URLClassPath behavior the internal implementation
> replacement of empty paths.
> Thanks, Roger
More information about the core-libs-dev