8207690: Parsing API for classpath and similar path strings

Alan Bateman Alan.Bateman at oracle.com
Tue Sep 11 09:24:36 UTC 2018


On 10/09/2018 21:55, Roger Riggs wrote:
> Nope! there's quoting on Windows that gets short changed with that 
> work around.
>
> Other opinions?, Suggestions?
One suggestion is reduce this down to one method that returns a stream 
rather than a collection. It could work lazily if you want. Something like:

   Stream<String> splitSearchPath(String input)

is a lot more flexible (in my view) and the places where we use Path 
objects can use .map(Path::of).

In passing, I see the current patch changes the UCP constructor that is 
used for supporting -Xbootclasspath/a. That that will to be checked to 
see if it has any impact on startup.

-Alan



More information about the core-libs-dev mailing list