Skip to content

Commit

Permalink
Register superinterfaces of SmallRye FT annotated beans
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Aug 2, 2024
1 parent b0a9a9e commit 55b7289
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,19 +242,18 @@ void processFallbackMethodsAndClases(BeanArchiveIndexBuildItem beanArchiveIndexB
continue;
}

// Scan both the hierarchy of the declaring class and its interfaces like in
// Scan both the hierarchy of the declaring class and its (super)interfaces like in
// io.smallrye.faulttolerance.internal.SecurityActions.findDeclaredMethodNames
DotName name = clazz.name();
while (name != null && !DotNames.OBJECT.equals(name)) {
Set<String> methods = classesToScan.computeIfAbsent(name, k -> new HashSet<>());
methods.add(fallbackMethod);
classesToScan.computeIfAbsent(name, k1 -> new HashSet<>()).add(fallbackMethod);
clazz.interfaceNames().forEach(it -> classesToScan.computeIfAbsent(it, k -> new HashSet<>()).add(fallbackMethod));
ClassInfo classInfo = index.getClassByName(name);
if (classInfo == null) {
break;
}
name = classInfo.superName();
}
clazz.interfaceNames().forEach(it -> classesToScan.computeIfAbsent(it, k -> new HashSet<>()).add(fallbackMethod));
}

for (Map.Entry<DotName, Set<String>> entry : classesToScan.entrySet()) {
Expand Down

0 comments on commit 55b7289

Please sign in to comment.