From c52484ed682d57c6d49f7fa62ba2b41715d2e826 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 12 Sep 2014 19:47:52 +0200 Subject: [PATCH] CachedIntrospectionResults uses ConcurrentReferenceHashMap for its type descriptor cache Issue: SPR-12185 --- .../org/springframework/beans/CachedIntrospectionResults.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java b/spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java index 4066c280457..e7926fd723b 100644 --- a/spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java +++ b/spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java @@ -303,7 +303,7 @@ public class CachedIntrospectionResults { this.propertyDescriptorCache.put(pd.getName(), pd); } - this.typeDescriptorCache = new ConcurrentHashMap(); + this.typeDescriptorCache = new ConcurrentReferenceHashMap(); } catch (IntrospectionException ex) { throw new FatalBeanException("Failed to obtain BeanInfo for class [" + beanClass.getName() + "]", ex);