Skip to content

Commit

Permalink
Never intercept synthetic static methods
Browse files Browse the repository at this point in the history
- related to quarkusio#21592
  • Loading branch information
mkouba committed Jan 3, 2022
1 parent 6311802 commit a580f28
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ void collectInterceptedStaticMethods(BeanArchiveIndexBuildItem beanArchiveIndex,

for (ClassInfo clazz : beanArchiveIndex.getIndex().getKnownClasses()) {
for (MethodInfo method : clazz.methods()) {
// Find all static methods (except for static initializers)
if (!Modifier.isStatic(method.flags()) || "<clinit>".equals(method.name())) {
// Find all non-synthetic static methods (except for static initializers)
if (method.isSynthetic()
|| !Modifier.isStatic(method.flags())
|| "<clinit>".equals(method.name())) {
continue;
}
// Get the (possibly transformed) set of annotations
Expand Down

0 comments on commit a580f28

Please sign in to comment.