RFR: JDK-8293659: Improve UnsatisfiedLinkError error message to include dlopen error details

Matthias Baesken mbaesken at openjdk.org
Thu Sep 15 12:00:19 UTC 2022


When trying to load a x64 lib on macOS aarch64 one got previously this detailed message before [JDK-8275703](https://bugs.openjdk.org/browse/JDK-8275703):

java.lang.UnsatisfiedLinkError: /testing/jco3/macOsx64/libsapjco3.dylib: dlopen(/testing/jco3/macOsx64/libsapjco3.dylib, 1): no suitable image found. Did find:

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

Commit messages:
 - JDK-8293659

Changes: https://git.openjdk.org/jdk/pull/10286/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10286&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8293659
  Stats: 17 lines in 1 file changed: 16 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/10286.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10286/head:pull/10286

PR: https://git.openjdk.org/jdk/pull/10286


More information about the core-libs-dev mailing list