* using this method.
*/
public static LZ4Factory fastestInstance() {
- if (Native.isLoaded()
- || Native.class.getClassLoader() == ClassLoader.getSystemClassLoader()) {
+ if (!Native.failedToLoad()
+ && (Native.isLoaded()
+ || Native.class.getClassLoader() == ClassLoader.getSystemClassLoader())) {
try {
return nativeInstance();
} catch (Throwable t) {