Skip to content

Commit

Permalink
Merge pull request #23830 from geoand/#23766
Browse files Browse the repository at this point in the history
Don't copy static methods to CDI Wrapper of REST Client
  • Loading branch information
geoand authored Feb 21, 2022
2 parents 5267baf + a4eed95 commit 912116d
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 912116d

Please sign in to comment.