requesting review on JDK-8348828: Windows dll loading now resolves symlinks
Alan Bateman
alan.bateman at oracle.com
Tue Oct 7 17:52:07 UTC 2025
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20251007/10635795/attachment.htm>
More information about the core-libs-dev
mailing list