Skip to content

Commit

Permalink
issue#12102 Prevent potential infinite loop in AutoAddScopeProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
jaikiran committed Sep 15, 2020
1 parent 3579849 commit 3b04c8d
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 3b04c8d

Please sign in to comment.