On Wed, Mar 26, 2025 at 11:13 AM Eirik Bjørsnøs <eir...@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