From b03a9351939897501fe3fb5162f604b5b412529d Mon Sep 17 00:00:00 2001 From: Kristof Dhondt Date: Fri, 16 Aug 2024 14:21:15 +0200 Subject: [PATCH] fix(native-image): support strict image heap --- src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java b/src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java index 05159b997..17082155c 100644 --- a/src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java +++ b/src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java @@ -10,6 +10,7 @@ import org.sqlite.jdbc3.JDBC3DatabaseMetaData; import org.sqlite.util.LibraryLoaderUtil; import org.sqlite.util.OSInfo; +import org.sqlite.util.ProcessRunner; import java.io.IOException; import java.io.InputStream; @@ -27,6 +28,7 @@ public void beforeAnalysis(BeforeAnalysisAccess a) { RuntimeClassInitialization.initializeAtBuildTime(SQLiteJDBCLoader.VersionHolder.class); RuntimeClassInitialization.initializeAtBuildTime(JDBC3DatabaseMetaData.class); RuntimeClassInitialization.initializeAtBuildTime(OSInfo.class); + RuntimeClassInitialization.initializeAtBuildTime(ProcessRunner.class); RuntimeClassInitialization.initializeAtBuildTime(LibraryLoaderUtil.class); a.registerReachabilityHandler( this::nativeDbReachable, method(SQLiteJDBCLoader.class, "initialize"));