#1650 - 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 6290325010
commit a783c635dd

View File

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