Skip to content

Commit d26a5ec

Browse files
yangwenjie008christophstrobl
authored andcommitted
Fix class loader issue with LazyLoadingProxyInterceptor.
Restore original behaviour that was unintentionally changed by modifications related to #4148. Closes: #4260 Original Pull Request: #4261
1 parent 89ecf99 commit d26a5ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public Object createLazyLoadingProxy(MongoPersistentProperty property, DbRefReso
120120
}
121121

122122
return prepareProxyFactory(propertyType,
123-
() -> new LazyLoadingInterceptor(property, callback, source, exceptionTranslator)).getProxy();
123+
() -> new LazyLoadingInterceptor(property, callback, source, exceptionTranslator)).getProxy(LazyLoadingProxy.class.getClassLoader());
124124
}
125125

126126
/**

0 commit comments

Comments
 (0)