From 683db74e2da862422173e33022c44a71f8d8d0ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20=C3=89pardaud?= Date: Tue, 30 Aug 2022 10:30:30 +0200 Subject: [PATCH] RESTEasy Reactive Client: register bean params for reflection --- .../reactive/deployment/JaxrsClientReactiveProcessor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveProcessor.java b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveProcessor.java index 3097536ea4737..7e3b8759fcd92 100644 --- a/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveProcessor.java +++ b/extensions/resteasy-reactive/jaxrs-client-reactive/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveProcessor.java @@ -38,6 +38,7 @@ import java.util.function.Consumer; import java.util.function.Supplier; import java.util.regex.Pattern; +import java.util.stream.Collectors; import javax.ws.rs.ProcessingException; import javax.ws.rs.RuntimeType; @@ -266,6 +267,9 @@ void setupClientProxies(JaxrsClientReactiveRecorder recorder, for (ParameterContainersBuildItem parameterContainersBuildItem : parameterContainersBuildItems) { scannedParameterContainers.addAll(parameterContainersBuildItem.getClassNames()); } + reflectiveClassBuildItemBuildProducer.produce(new ReflectiveClassBuildItem(false, true, + scannedParameterContainers.stream().map(name -> name.toString()).collect(Collectors.toSet()) + .toArray(new String[0]))); if (resourceScanningResultBuildItem.isEmpty() || resourceScanningResultBuildItem.get().getResult().getClientInterfaces().isEmpty()) {