This is an automated email from the ASF dual-hosted git repository.

JiriOndrusek pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/camel-main by this push:
     new 6f2f0dbe59 Register SecureRandomHelper for runtime initialization in 
native mode
6f2f0dbe59 is described below

commit 6f2f0dbe592f12e570df94268aa8c0b50d73c919
Author: Jiri Ondrusek <[email protected]>
AuthorDate: Wed Jul 8 12:19:45 2026 +0200

    Register SecureRandomHelper for runtime initialization in native mode
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 .../camel/quarkus/core/deployment/CamelNativeImageProcessor.java   | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelNativeImageProcessor.java
 
b/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelNativeImageProcessor.java
index ccd4802086..04ba5c3f7f 100644
--- 
a/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelNativeImageProcessor.java
+++ 
b/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelNativeImageProcessor.java
@@ -37,6 +37,7 @@ import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
 import 
io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
 import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
 import io.quarkus.deployment.builditem.nativeimage.ReflectiveMethodBuildItem;
+import 
io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;
 import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild;
 import org.apache.camel.CamelContext;
 import org.apache.camel.Component;
@@ -65,6 +66,7 @@ import org.apache.camel.spi.PropertiesComponent;
 import org.apache.camel.spi.ScheduledPollConsumerScheduler;
 import org.apache.camel.spi.StreamCachingStrategy;
 import org.apache.camel.support.CamelContextHelper;
+import org.apache.camel.util.SecureRandomHelper;
 import org.jboss.jandex.AnnotationTarget.Kind;
 import org.jboss.jandex.AnnotationValue;
 import org.jboss.jandex.ClassInfo;
@@ -301,6 +303,11 @@ public class CamelNativeImageProcessor {
         });
     }
 
+    @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class)
+    RuntimeInitializedClassBuildItem runtimeInitSecureRandomHelper() {
+        return new 
RuntimeInitializedClassBuildItem(SecureRandomHelper.class.getName());
+    }
+
     @BuildStep
     ReflectiveClassBuildItem registerSimpleNoFileLanguageForReflection() {
         // Required as SimpleNoFileLanguage loading & discovery is not done 
via the FactoryFinder

Reply via email to