Skip to content

Commit

Permalink
Merge pull request #12103 from jaikiran/qk-12102
Browse files Browse the repository at this point in the history
Prevent potential infinite loop in AutoAddScopeProcessor
  • Loading branch information
mkouba authored Sep 15, 2020
2 parents b9582fa + 3b04c8d commit 16192a2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ private boolean requiresContainerServices(ClassInfo clazz, Set<DotName> containe
if (index != null) {
DotName superName = clazz.superName();
while (superName != null && !superName.equals(DotNames.OBJECT)) {
ClassInfo superClass = index.getClassByName(superName);
final ClassInfo superClass = index.getClassByName(superName);
if (superClass != null) {
if (hasContainerAnnotation(clazz, containerAnnotationNames)) {
if (hasContainerAnnotation(superClass, containerAnnotationNames)) {
return true;
}
superName = superClass.superName();
} else {
superName = null;
}
}
}
Expand Down

0 comments on commit 16192a2

Please sign in to comment.