From 58344384088d893f103e9106a309dd6de261dbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mathieu?= Date: Tue, 16 Jul 2024 14:03:53 +0200 Subject: [PATCH] Initialize at runtime AndroidFriendlyRandomHolder --- .../common/deployment/CommonBuildSteps.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/deployment/src/main/java/io/quarkiverse/googlecloudservices/common/deployment/CommonBuildSteps.java b/common/deployment/src/main/java/io/quarkiverse/googlecloudservices/common/deployment/CommonBuildSteps.java index 1fed3225..bcced870 100644 --- a/common/deployment/src/main/java/io/quarkiverse/googlecloudservices/common/deployment/CommonBuildSteps.java +++ b/common/deployment/src/main/java/io/quarkiverse/googlecloudservices/common/deployment/CommonBuildSteps.java @@ -40,7 +40,9 @@ public NativeImageConfigBuildItem nativeImageConfiguration() { NativeImageConfigBuildItem.Builder builder = NativeImageConfigBuildItem.builder() .addRuntimeReinitializedClass("com.sun.management.internal.PlatformMBeanProviderImpl") // Required due to sun.misc.Unsafe usage in static initializers - .addRuntimeReinitializedClass("com.google.common.cache.Striped64"); + .addRuntimeReinitializedClass("com.google.common.cache.Striped64") + // Required due to initializing a java.util.Random + .addRuntimeReinitializedClass("io.opentelemetry.sdk.internal.AndroidFriendlyRandomHolder"); return builder.build(); } }