Browse Source

Fix class loader issue with LazyLoadingProxyInterceptor.

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

Closes: #4260
Original Pull Request: #4261
pull/4268/head
yangwenjie008 3 years ago committed by Christoph Strobl
parent
commit
7ce2ebe26e
No known key found for this signature in database
GPG Key ID: 8CC1AB53391458C8
  1. 2
      spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/LazyLoadingProxyFactory.java

2
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/LazyLoadingProxyFactory.java

@ -120,7 +120,7 @@ public final class LazyLoadingProxyFactory { @@ -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());
}
/**

Loading…
Cancel
Save