Skip to content

Commit 562351f

Browse files
committed
Detect ajc markers in superclasses as well (for weaving check)
Closes gh-33113 (cherry picked from commit 100da83)
1 parent 2302b30 commit 562351f

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
@@ -549,7 +549,8 @@ private static boolean compiledByAjc(Class<?> clazz) {
549549
return true;
550550
}
551551
}
552-
return false;
552+
Class<?> superclass = clazz.getSuperclass();
553+
return (superclass != null && compiledByAjc(superclass));
553554
}
554555

555556

0 commit comments

Comments
 (0)