On Thu, 8 May 2025 19:39:17 GMT, Benjamin Peterson <d...@openjdk.org> wrote:
>> The appending of the "." is specific to the case where there isn't a .dll >> suffix. > > `LoadLibrary` appears to happily load files with a `.dll` extension even if a > trailing `.` is appended. So, special casing doesn't appear necessary. Is this documented in the Microsoft document for LoadLibrary? We don't want to rely on undocumented behavior as it could break at any time. For the prototype, I think you can replace nativeLoaderFileNameSuffix() with mapToNativeLibraryName(String) so that other platforms can "return this". This would give the flexibility to prefix or do other mangling. That said, I'm not so sure that we should changing the JDK to work in this unusual environment. Are you able to name the product that is move-renaming the DLLs and replacing them with sym links? Just trying to get some sense as to whether this is something that many people might run into it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/24694#discussion_r2081271000