mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Enforce early initialization of CGLIB method proxies (for AOT processing)
For non-required method proxies, prefer regular reflective invocation instead. See gh-29107
This commit is contained in:
+1
-1
@@ -541,7 +541,7 @@ class ConfigurationClassEnhancer {
|
||||
if (method.getName().equals("getObject") && args.length == 0) {
|
||||
return beanFactory.getBean(beanName);
|
||||
}
|
||||
return proxy.invoke(factoryBean, args);
|
||||
return method.invoke(factoryBean, args);
|
||||
});
|
||||
|
||||
return fbProxy;
|
||||
|
||||
Reference in New Issue
Block a user