On 07/10/2025 18:08, Benjamin Peterson wrote:
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
https://bugs.openjdk.org/browse/JDK-8348828?focusedId=14744766&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14744766
 .
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.
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.

foo.dll  ->  dir\bar.dll
foo.dll  ->  dir\bar
foo       ->  dir\bar.dll

where "->" is a sym link so it's clear which cases that System.loadLibrary works or doesn't work.

-Alan

Reply via email to