From fbd8fff26634db287b78bcb553bb3acefbca9187 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 11 Oct 2022 08:25:59 +0300 Subject: [PATCH] Fix RESTEasy Reactive testsuite The failure showed up in a few PRs (like #28429 and #27526) --- .../server/deployment/CustomResourceProducersGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/CustomResourceProducersGenerator.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/CustomResourceProducersGenerator.java index b7abae03c0b8a..a0b95bbb21214 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/CustomResourceProducersGenerator.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/main/java/io/quarkus/resteasy/reactive/server/deployment/CustomResourceProducersGenerator.java @@ -175,8 +175,8 @@ public static void generate(Map resourcesThatNeedCustomProd ResultHandle quarkusRestContextHandle = m.invokeVirtualMethod(getContextMethodCreator.getMethodDescriptor(), m.getThis()); ResultHandle extractorHandle = m.newInstance( - MethodDescriptor.ofConstructor(CookieParamExtractor.class, String.class), - m.getMethodParam(0)); + MethodDescriptor.ofConstructor(CookieParamExtractor.class, String.class, String.class), + m.getMethodParam(0), m.loadNull()); ResultHandle resultHandle = m.invokeVirtualMethod(MethodDescriptor.ofMethod(CookieParamExtractor.class, "extractParameter", Object.class, ResteasyReactiveRequestContext.class), extractorHandle, quarkusRestContextHandle);