Skip to content

Commit

Permalink
Merge pull request #37035 from zakkak/2023-11-13-fix-36896
Browse files Browse the repository at this point in the history
Register methods of RESTeasy reactive parameter containers for reflection
  • Loading branch information
zakkak committed Dec 11, 2023
2 parents 86cde05 + 94cf511 commit 1714220
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import java.util.function.Predicate;
import java.util.function.Supplier;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import jakarta.ws.rs.ProcessingException;
import jakarta.ws.rs.RuntimeType;
Expand Down Expand Up @@ -287,9 +286,8 @@ void setupClientProxies(JaxrsClientReactiveRecorder recorder,
scannedParameterContainers.addAll(parameterContainersBuildItem.getClassNames());
}
reflectiveClassBuildItemBuildProducer.produce(ReflectiveClassBuildItem
.builder(scannedParameterContainers.stream().map(name -> name.toString()).collect(Collectors.toSet())
.toArray(new String[0]))
.fields().build());
.builder(scannedParameterContainers.stream().map(DotName::toString).distinct().toArray(String[]::new))
.methods().fields().build());

if (resourceScanningResultBuildItem.isEmpty()
|| resourceScanningResultBuildItem.get().getResult().getClientInterfaces().isEmpty()) {
Expand Down

0 comments on commit 1714220

Please sign in to comment.