From 83dcef04b818f06247f440a13278f34ea3fb5e16 Mon Sep 17 00:00:00 2001 From: edeweerd Date: Wed, 30 Oct 2024 14:05:17 +0100 Subject: [PATCH] fix(spi): Change unsupported class types in RetryConfig It was discovered whilst trying a fix for another issue and refactoring the repository and moving spi classes to runtime. In runtime the Quarkus annotation processor is applied. And it was failing because of this incorrect configuration interface. This interface was written using the fields of the `org.eclipse.microprofile.faulttolerance.Retry` annotation. And one can set `Class` object as type of fields of annotation. It is however not supported by `microprofile-config`. This will have no effect as such, as those configuration entries are directly injected as configuration entries linked to the retryable method of `io.quarkiverse.kafkastreamsprocessor.impl.decorator.processor.RetryDecoratorDelegate`. --- .../kafkastreamsprocessor/spi/properties/RetryConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spi/src/main/java/io/quarkiverse/kafkastreamsprocessor/spi/properties/RetryConfig.java b/spi/src/main/java/io/quarkiverse/kafkastreamsprocessor/spi/properties/RetryConfig.java index f26de3b..4c91c3e 100644 --- a/spi/src/main/java/io/quarkiverse/kafkastreamsprocessor/spi/properties/RetryConfig.java +++ b/spi/src/main/java/io/quarkiverse/kafkastreamsprocessor/spi/properties/RetryConfig.java @@ -97,7 +97,7 @@ public interface RetryConfig { * @see Retry#retryOn() */ @WithDefault("io.quarkiverse.kafkastreamsprocessor.api.exception.RetryableException") - List> retryOn(); + List retryOn(); /** * The list of exception types that should not trigger a retry. @@ -108,5 +108,5 @@ public interface RetryConfig { * @see Retry#abortOn() */ @WithDefault("") - Optional>> abortOn(); + Optional> abortOn(); } \ No newline at end of file