Skip to content

Commit

Permalink
Initialize at runtime AndroidFriendlyRandomHolder
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Jul 16, 2024
1 parent ed57e70 commit 5834438
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 5834438

Please sign in to comment.