Skip to content

Commit 100da83

Browse files
committed
Detect ajc markers in superclasses as well (for weaving check)
Closes gh-33113
1 parent e881c70 commit 100da83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,8 @@ private static boolean compiledByAjc(Class<?> clazz) {
553553
return true;
554554
}
555555
}
556-
return false;
556+
Class<?> superclass = clazz.getSuperclass();
557+
return (superclass != null && compiledByAjc(superclass));
557558
}
558559

559560

0 commit comments

Comments
 (0)