<div dir="ltr"><div dir="ltr">On Wed, Mar 26, 2025 at 11:13 AM Eirik Bjørsnøs <<a href="mailto:eirbjo@gmail.com">eirbjo@gmail.com</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>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).</div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>Cheers,</div><div>Eirik.</div><div><br></div><div>[1] <a href="https://github.com/openjdk/jdk/pull/24332">https://github.com/openjdk/jdk/pull/24332</a></div></div></div>