8315891: java/foreign/TestLinker.java failed with "error occurred while instantiating class TestLinker: null"
Reviewed-by: sundar, jvernee, pminborg
This commit is contained in:
parent
9559e035d2
commit
a62c48b87e
@ -36,14 +36,20 @@ final class LibFallback {
|
|||||||
|
|
||||||
static final boolean SUPPORTED = tryLoadLibrary();
|
static final boolean SUPPORTED = tryLoadLibrary();
|
||||||
|
|
||||||
|
@SuppressWarnings("removal")
|
||||||
private static boolean tryLoadLibrary() {
|
private static boolean tryLoadLibrary() {
|
||||||
try {
|
return java.security.AccessController.doPrivileged(
|
||||||
System.loadLibrary("fallbackLinker");
|
new java.security.PrivilegedAction<>() {
|
||||||
} catch (UnsatisfiedLinkError ule) {
|
public Boolean run() {
|
||||||
return false;
|
try {
|
||||||
}
|
System.loadLibrary("fallbackLinker");
|
||||||
init();
|
init();
|
||||||
return true;
|
return true;
|
||||||
|
} catch (UnsatisfiedLinkError ule) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static int defaultABI() { return NativeConstants.DEFAULT_ABI; }
|
static int defaultABI() { return NativeConstants.DEFAULT_ABI; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user