#1448 - 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:
Oliver Drotbohm
2021-09-21 17:48:16 +02:00
parent fe1657386d
commit 3b94d4b862

View File

@@ -194,6 +194,7 @@ public class DummyInvocationUtils {
if (type.isInterface()) {
factory.addInterface(type);
} else {
factory.setOptimize(true);
factory.setTargetClass(type);
factory.setProxyTargetClass(true);
}