Fix class loader issue with LazyLoadingProxyInterceptor.

Restore original behaviour that was unintentionally changed by modifications related to #4148.

Closes: #4260
Original Pull Request: #4261
This commit is contained in:
yangwenjie008
2022-12-31 09:16:13 +08:00
committed by Christoph Strobl
parent 89ecf998b6
commit d26a5ece68

View File

@@ -120,7 +120,7 @@ public final class LazyLoadingProxyFactory {
}
return prepareProxyFactory(propertyType,
() -> new LazyLoadingInterceptor(property, callback, source, exceptionTranslator)).getProxy();
() -> new LazyLoadingInterceptor(property, callback, source, exceptionTranslator)).getProxy(LazyLoadingProxy.class.getClassLoader());
}
/**