Skip to content

Commit

Permalink
RESTEasy Reactive Client: register bean params for reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Oct 11, 2022
1 parent a353d16 commit 683db74
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit 683db74

Please sign in to comment.