From a4eed959e844e5d0b01fc6d11bbaafd7d0e4d09e Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 21 Feb 2022 10:56:27 +0200 Subject: [PATCH] Don't copy static methods to CDI Wrapper of REST Client Fixes: #23766 --- .../client/reactive/deployment/RestClientReactiveProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java index e5c23d8755e71..d89ff314009a4 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java @@ -400,7 +400,7 @@ void addRestClientBeans(Capabilities capabilities, // but emitting the correct invokespecial instruction would become convoluted // (as invokespecial may only reference a method from a _direct_ super interface) for (MethodInfo method : jaxrsInterface.methods()) { - boolean isDefault = !Modifier.isAbstract(method.flags()); + boolean isDefault = !Modifier.isAbstract(method.flags()) && !Modifier.isStatic(method.flags()); if (isDefault) { methodsToImplement.add(method); }