Skip to content

Commit

Permalink
Don't copy static methods to CDI Wrapper of REST Client
Browse files Browse the repository at this point in the history
Fixes: #23766
  • Loading branch information
geoand committed Feb 21, 2022
1 parent 22cf7ed commit a4eed95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a4eed95

Please sign in to comment.