#1649 - Improve proxy creation in DummyInvocationUtils.
We now explicitly set the optimize flag on the ProxyFactory for class based proxies used to create dummy invocation proxies. Still needs the upgrade to Spring Framework 5.3.11 (spring-projects/spring-framework#27439, #1647) to create full effect.
This commit is contained in:
@@ -194,6 +194,7 @@ public class DummyInvocationUtils {
|
||||
if (type.isInterface()) {
|
||||
factory.addInterface(type);
|
||||
} else {
|
||||
factory.setOptimize(true);
|
||||
factory.setTargetClass(type);
|
||||
factory.setProxyTargetClass(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user