On 18/04/2017 18:44, Volker Simonis wrote:

Hi Alan, Chris,

thanks for your help and feedback.
It seems my fix was indeed "too optimistic". I've only briefly looked into the errors reported by Chris. The first one is due to a cyclic dependency between Paths.get() and FileSystems.getDefault().

So I've finally decided to go with Alan's proposal which is probably the least invasive one:

http://cr.openjdk.java.net/~simonis/webrevs/2017/8178726.v1/ <http://cr.openjdk.java.net/%7Esimonis/webrevs/2017/8178726.v1/>

It would be great if someone could verify this new version once again by running it through JPRT (I've verified that the reported problems don't occur any more, but who knows :)
I ran it through the build+test system and don't see any issues. It's great that you found this issue before GA, I suspect testing with a directory of .class files on a UNC isn't too common (for performance reasons) which is why it wasn't noticed (the issue has been in JDK 9 for more than a year).

One additional suggestion is to include a comment, something like:

// use File::toURL as URLClassPath can't handle URLs with a UNC
// server name in the authority component

as it won't be immediately clear to readers why the toFile() is needed in the chain.

-Alan

Reply via email to