RFR: JDK-8319516 - Native library suffix impact on the library loading in AIX- Java Class Loader [v5]

Mandy Chung mchung at openjdk.org
Tue Mar 26 21:19:24 UTC 2024


On Mon, 25 Mar 2024 09:46:50 GMT, Suchismith Roy <sroy at openjdk.org> wrote:

>> Allow support for both .a and .so files in AIX.
>> If .so file is not found, allow fallback to .a extension.
>> JBS Issue: [JDK-8319516](https://bugs.openjdk.org/browse/JDK-8319516)
>
> Suchismith Roy has updated the pull request incrementally with four additional commits since the last revision:
> 
>  - coding style
>  - set false
>  - restore fil
>  -  remove member check code

I think just changing `loadLibraryOnlyIfPresent` to return false should be sufficient to make `System.loadLibrary("foo")` loading from "libfoo.a" and `System.load("/usr/lib/libfoo.a(libfoo.so)")` to work.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17945#issuecomment-2021488820


More information about the core-libs-dev mailing list