Class-Path (in jar file) semantics different between Java 11 and 13 (on Windows)?
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 20 14:58:43 UTC 2019
On 20/11/2019 13:50, David Lloyd wrote:
> :
> OK, but this decision violates both the old and updated spec (and
> makes it difficult to write code that works in both cases: in
> situations that reject absolute URLs (javac) and in situations that
> reject drive letters (this code)), so I would request that this be
> revisited.
>
This cannot be rushed as it require detailed security analysis. Is there
any reason why you need to encode absolute file paths as relative URLs?
I assume the use-case discussed here will work if File::toURI or toURL
is used to create the file URL as it will have the "file:" scheme.
-Alan
More information about the core-libs-dev
mailing list