Skip to content

Commit 3dc1e6d

Browse files
author
Aleksandar Gradinac
committed
Use mapped alternative library name when loading JNI libraries
1 parent 32b86f3 commit 3dc1e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/NativeLibrarySupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void loadLibraryRelative(String name) {
125125
return;
126126
}
127127
File altpath = Target_jdk_internal_loader_ClassLoaderHelper.mapAlternativeName(libpath);
128-
if (altpath != null && loadLibrary0(libpath, false)) {
128+
if (altpath != null && loadLibrary0(altpath, false)) {
129129
return;
130130
}
131131
}

0 commit comments

Comments
 (0)