From 789f983b340c1140d2a93b1af6a0df73052c14b6 Mon Sep 17 00:00:00 2001 From: Koy Date: Thu, 8 Oct 2020 22:21:28 +0800 Subject: [PATCH] [fix #3469] add Proxy check case. --- src/main/java/com/alibaba/fastjson/util/TypeUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/alibaba/fastjson/util/TypeUtils.java b/src/main/java/com/alibaba/fastjson/util/TypeUtils.java index 89fb60ec27..8d7cbcb88e 100644 --- a/src/main/java/com/alibaba/fastjson/util/TypeUtils.java +++ b/src/main/java/com/alibaba/fastjson/util/TypeUtils.java @@ -2728,6 +2728,9 @@ public static boolean isProxy(Class clazz){ if (interfaceName.equals("org.hibernate.proxy.HibernateProxy")) { return true; } + if (interfaceName.equals("org.springframework.context.annotation.ConfigurationClassEnhancer$EnhancedConfiguration")){ + return true; + } } return false; }