Skip to content

Commit 09123de

Browse files
committed
Detect ajc markers in superclasses as well (for weaving check)
Closes gh-33113 (cherry picked from commit 100da83)
1 parent 069d081 commit 09123de

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
@@ -545,7 +545,8 @@ private static boolean compiledByAjc(Class<?> clazz) {
545545
return true;
546546
}
547547
}
548-
return false;
548+
Class<?> superclass = clazz.getSuperclass();
549+
return (superclass != null && compiledByAjc(superclass));
549550
}
550551

551552

0 commit comments

Comments
 (0)