Fix Aware exclusion check to apply to interface method only

See gh-35780
This commit is contained in:
Juergen Hoeller
2025-11-08 09:53:17 +01:00
parent 6f81cb625c
commit 38555df3d8
3 changed files with 3 additions and 3 deletions
@@ -141,7 +141,7 @@ public abstract class AbstractFallbackCacheOperationSource implements CacheOpera
return null;
}
// Skip methods declared on BeanFactoryAware and co.
if (Aware.class.isAssignableFrom(method.getDeclaringClass())) {
if (method.getDeclaringClass().isInterface() && Aware.class.isAssignableFrom(method.getDeclaringClass())) {
return null;
}