<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">On 07/10/2025 18:08, Benjamin Peterson
wrote:<span style="white-space: pre-wrap">
</span></div>
<blockquote type="cite" cite="mid:CAEmfU+uOUbBPXCnBEV7SrqCH4rcaHoppT49KQWne0SA+9RRY4Q@mail.gmail.com">
<pre wrap="" class="moz-quote-pre">
The reproducer I submitted in the initial bug report is definitely
weird looking because I attempted point out the breaking change in as
simple and as self-contained a manner as possible. But, I did run into
this in a very real and useful application. I've tried to add more
context about the application in comments such as
<a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8348828?focusedId=14744766&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14744766">https://bugs.openjdk.org/browse/JDK-8348828?focusedId=14744766&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14744766</a> .
I can certainly answer more questions about the usecase if the would
be helpful.
The heart of the matter is: Is it legal to call System.loadLibrary()
with a symlink on Windows? The JDK before 24's answer was yes.
</pre>
</blockquote>
I have sympathy for the more general case. I think it would be
useful to create a small table of what works and doesn't work, e.g.<br>
<br>
foo.dll -> dir\bar.dll<br>
foo.dll -> dir\bar<br>
foo -> dir\bar.dll<br>
<br>
where "->" is a sym link so it's clear which cases that
System.loadLibrary works or doesn't work.<br>
<br>
-Alan<br>
<br>
</body>
</html>