mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 12:19:16 +00:00
Fix inappropriate eager init.
This commit is contained in:
committed by
Juergen Hoeller
parent
8186b77b58
commit
834ebc44f8
+2
-2
@@ -473,10 +473,10 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
||||
public String[] getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit) {
|
||||
Class<?> resolved = type.resolve();
|
||||
if (resolved != null && !type.hasGenerics()) {
|
||||
return getBeanNamesForType(resolved, includeNonSingletons, includeNonSingletons);
|
||||
return getBeanNamesForType(resolved, includeNonSingletons, allowEagerInit);
|
||||
}
|
||||
else {
|
||||
return doGetBeanNamesForType(type, includeNonSingletons, includeNonSingletons);
|
||||
return doGetBeanNamesForType(type, includeNonSingletons, allowEagerInit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user