Skip to content

Commit de54f20

Browse files
committed
Output log message when CglibProxyFactory is used
1 parent 95630f9 commit de54f20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/apache/ibatis/executor/loader/cglib/CglibProxyFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public Object createDeserializationProxy(Object target, Map<String, ResultLoader
6767
}
6868

6969
static Object crateProxy(Class<?> type, Callback callback, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
70+
LogHolder.log.warn("CglibProxyFactory is deprecated. Use another proxy factory implementation.");
7071
Enhancer enhancer = new Enhancer();
7172
enhancer.setCallback(callback);
7273
enhancer.setSuperclass(type);

0 commit comments

Comments
 (0)