RFR: 8157716: jdk.internal.loader.ClassLoaders.addURLToUCP() should return converted real path URL
Martin Buchholz
martinrb at google.com
Tue May 24 22:02:15 UTC 2016
On Tue, May 24, 2016 at 11:49 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 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.
Canonicalization is reasonable for checking whether two files are the
same (but of course it's not reliable!). But it should be explained -
it is not at all obvious how this code relates to CDS... and the
resulting canonicalized paths should never be exposed to the user,
e.g. in java.class.path.
More information about the core-libs-dev
mailing list