From 9e66b17e5873c277000aaec9506811e7fc6be578 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sat, 30 Mar 2024 02:44:10 +0100 Subject: [PATCH] Bypass error --- .../cavallium/rockserver/core/impl/EmbeddedDB.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/it/cavallium/rockserver/core/impl/EmbeddedDB.java b/src/main/java/it/cavallium/rockserver/core/impl/EmbeddedDB.java index b626f3a..6cc626c 100644 --- a/src/main/java/it/cavallium/rockserver/core/impl/EmbeddedDB.java +++ b/src/main/java/it/cavallium/rockserver/core/impl/EmbeddedDB.java @@ -55,6 +55,20 @@ import org.rocksdb.WriteOptions; public class EmbeddedDB implements RocksDBSyncAPI, Closeable { + static { + //noinspection ThrowableNotThrown + var exceptionLoadBypass = new RocksDBException("test"); + //noinspection ResultOfMethodCallIgnored + exceptionLoadBypass.getMessage(); + try { + var clazz = Class.forName("org.rocksdb.RocksDBException"); + //noinspection ResultOfMethodCallIgnored + clazz.getSimpleName(); + } catch (ClassNotFoundException e) { + throw new RuntimeException(e); + } + } + private static final int INITIAL_DIRECT_READ_BYTE_BUF_SIZE_BYTES = 4096; public static final long MAX_TRANSACTION_DURATION_MS = 10_000L; private static final boolean USE_FAST_GET = true;