<div dir="ltr"><div dir="ltr"><div dir="ltr">On Thu, Mar 27, 2025 at 3:03 PM Jaikiran Pai <<a href="mailto:jai.forums2013@gmail.com" target="_blank">jai.forums2013@gmail.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p>Hello Eirik,</p>
<p>The code in URLJarFile which does that check for "~" seems to
have been introduced for
<a href="https://bugs.openjdk.org/browse/JDK-4447921" target="_blank">https://bugs.openjdk.org/browse/JDK-4447921</a>. It doesn't tell why
the "~" was necessary.</p></div></blockquote><div> </div><div>Similar to the Unix history of using "~" as a substitution for home directories [1], perhaps the "Home" button on the Lear-Siegler ADM-3A terminal also inspired use of "~" to signify the "Home" host, a.k.a 'localhost' on some platform historically supported by the JDK?</div><div><br></div><div>Currently, the JDK resolves both these URLs on unixes:</div><div><br></div><div>file://localhost/etc/hosts</div><div>file://~/etc/hosts</div><div><br></div><div>while the latter is rejected by curl (MacOS) as a "Bad file:// URL".</div><div><br></div><div>Any AIX or Solaris/SunOS historians here?</div><div><br></div><div>Eirik.</div><div><br></div><div>[1] <a href="https://en.wikipedia.org/wiki/Tilde#Directories_and_URLs">https://en.wikipedia.org/wiki/Tilde#Directories_and_URLs</a></div><div><br></div><div> </div></div></div>
</div>