RFR: 8157716: jdk.internal.loader.ClassLoaders.addURLToUCP() should return converted real path URL
Alan Bateman
Alan.Bateman at oracle.com
Tue May 24 18:49:32 UTC 2016
On 24/05/2016 18:57, Martin Buchholz wrote:
> English syntax error.
>
> + * Attempts to convert to the given string to a file URL.
>
> ---
>
> There should be some motivation for why you are calling toRealPath,
> and e.g. not toAbsolutePath.
> What problem are you trying to solve?
>
> At Google we have special needs - this is the kind of change we end up
> locally reverting.
>
Yeah, the context isn't clear here. This is all related to the HotSpot
CDS feature and so very tied to the built-in class loaders. File paths
are recorded at -Xshare:dump time and checked at -Xshare:on time. Too
many types of fie path and corner cases on Windows for the VM to get it
right.
-Alan
More information about the core-libs-dev
mailing list