[#1709] Correctly detect that Unsafe.copyMemory is missing

This commit is contained in:
Norman Maurer 2013-08-08 11:57:05 +02:00
parent 194b64cff1
commit b456adf404

View File

@ -97,6 +97,9 @@ final class PlatformDependent0 {
} catch (NoSuchMethodError t) {
logger.debug("sun.misc.Unsafe.copyMemory: unavailable");
throw t;
} catch (NoSuchMethodException e) {
logger.debug("sun.misc.Unsafe.copyMemory: unavailable");
throw e;
}
} catch (Throwable cause) {
unsafe = null;