RFR: JDK-8275703: System.loadLibrary fails on Big Sur for libraries hidden from filesystem

Mandy Chung mchung at openjdk.java.net
Wed Oct 27 19:05:12 UTC 2021


On Wed, 27 Oct 2021 18:25:40 GMT, Alan Snyder <javalists at cbfiddle.com> wrote:

> I never load system libraries directly. I load my own libraries (that support JNI entry points) and the system loader loads the necessary system frameworks that they were linked against.
> 
> What's different in this case that motivates loading system libraries directly from Java

Panama would be the right place to provide the support of loading system libraries directly from Java and enhance the interconnection between JVM and native code.

The bug report is an example showing that developers want to load a system library for their native code to use.  It's not surprise that they use `System::load/loadLibrary` even it's designed for JNI without Panama since it works.  So this patch is for compatibility for existing applications to continue to run on Big Sur.

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

PR: https://git.openjdk.java.net/jdk/pull/6127


More information about the core-libs-dev mailing list