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:
@@ -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