We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fad857e commit 338922fCopy full SHA for 338922f
spring-beans/src/main/java/org/springframework/beans/factory/support/DisposableBeanAdapter.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2002-2023 the original author or authors.
+ * Copyright 2002-2024 the original author or authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -261,7 +261,7 @@ private Method determineDestroyMethod(String destroyMethodName) {
261
if (destroyMethod != null) {
262
return destroyMethod;
263
}
264
- for (Class<?> beanInterface : beanClass.getInterfaces()) {
+ for (Class<?> beanInterface : ClassUtils.getAllInterfacesForClass(beanClass)) {
265
destroyMethod = findDestroyMethod(beanInterface, methodName);
266
267
0 commit comments