RFD: Use of ~ (tilde) when considering local and non-local file URLs

Eirik Bjørsnøs eirbjo at gmail.com
Tue Apr 1 07:01:30 UTC 2025


On Wed, Mar 26, 2025 at 11:13 AM Eirik Bjørsnøs <eirbjo at gmail.com> wrote:

>
> In any case, I think if we could add the tilde logic
> to JarFileFactory::urlFor, then all these four checks would be equivalent
> and a prime candidate for a consolidating cleanup PR, perhaps also
> expanding a bit on the documentation for the consolidated method(s).
>

For reference, I filed a PR 24332 [1] which consolidates the 'local file
URL' checking in file: and jar: schemes, without changing this existing and
long-standing non-treatment of "~" as an alias for "localhost" in
JarFileFactory::urlFor.

Cheers,
Eirik.

[1] https://github.com/openjdk/jdk/pull/24332
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/net-dev/attachments/20250401/46fb01e9/attachment-0001.htm>


More information about the net-dev mailing list