You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2021/07/21 06:48:35 UTC

[camel-quarkus] branch main updated: Remove reflective class registration for ScramSaslClientFactory

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

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


The following commit(s) were added to refs/heads/main by this push:
     new f46b414  Remove reflective class registration for ScramSaslClientFactory
f46b414 is described below

commit f46b4142c685f5f69e98f669c0ebd1f2e3d18c4f
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Jul 20 15:13:06 2021 +0100

    Remove reflective class registration for ScramSaslClientFactory
    
    Fixes #2850
---
 .../camel/quarkus/component/kafka/deployment/KafkaProcessor.java  | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/extensions/kafka/deployment/src/main/java/org/apache/camel/quarkus/component/kafka/deployment/KafkaProcessor.java b/extensions/kafka/deployment/src/main/java/org/apache/camel/quarkus/component/kafka/deployment/KafkaProcessor.java
index 4a86ccf..35ffaa4 100644
--- a/extensions/kafka/deployment/src/main/java/org/apache/camel/quarkus/component/kafka/deployment/KafkaProcessor.java
+++ b/extensions/kafka/deployment/src/main/java/org/apache/camel/quarkus/component/kafka/deployment/KafkaProcessor.java
@@ -22,9 +22,7 @@ import io.quarkus.deployment.Capability;
 import io.quarkus.deployment.annotations.BuildProducer;
 import io.quarkus.deployment.annotations.BuildStep;
 import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
 import org.apache.camel.quarkus.component.kafka.KafkaClientFactoryProducer;
-import org.apache.kafka.common.security.scram.internals.ScramSaslClient.ScramSaslClientFactory;
 
 class KafkaProcessor {
     private static final String FEATURE = "camel-kafka";
@@ -42,10 +40,4 @@ class KafkaProcessor {
             additionalBean.produce(AdditionalBeanBuildItem.unremovableOf(KafkaClientFactoryProducer.class));
         }
     }
-
-    @BuildStep
-    void reflectiveClasses(BuildProducer<ReflectiveClassBuildItem> reflectiveClasses) {
-        reflectiveClasses.produce(new ReflectiveClassBuildItem(false, false, ScramSaslClientFactory.class));
-    }
-
 }