File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-aop/src/main/java/org/springframework/aop/aspectj/annotation Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,11 @@ private boolean compiledByAjc(Class<?> clazz) {
103
103
@ Override
104
104
public void validate (Class <?> aspectClass ) throws AopConfigException {
105
105
// If the parent has the annotation and isn't abstract it's an error
106
- if (aspectClass .getSuperclass ().getAnnotation (Aspect .class ) != null &&
107
- !Modifier .isAbstract (aspectClass .getSuperclass ().getModifiers ())) {
106
+ Class <?> superclass = aspectClass .getSuperclass ();
107
+ if (superclass .getAnnotation (Aspect .class ) != null &&
108
+ !Modifier .isAbstract (superclass .getModifiers ())) {
108
109
throw new AopConfigException ("[" + aspectClass .getName () + "] cannot extend concrete aspect [" +
109
- aspectClass . getSuperclass () .getName () + "]" );
110
+ superclass .getName () + "]" );
110
111
}
111
112
112
113
AjType <?> ajType = AjTypeSystem .getAjType (aspectClass );
You can’t perform that action at this time.
0 commit comments