Skip to content

Commit c52484e

Browse files
committed
CachedIntrospectionResults uses ConcurrentReferenceHashMap for its type descriptor cache
Issue: SPR-12185
1 parent 9b2da37 commit c52484e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ private CachedIntrospectionResults(Class<?> beanClass) throws BeansException {
303303
this.propertyDescriptorCache.put(pd.getName(), pd);
304304
}
305305

306-
this.typeDescriptorCache = new ConcurrentHashMap<PropertyDescriptor, TypeDescriptor>();
306+
this.typeDescriptorCache = new ConcurrentReferenceHashMap<PropertyDescriptor, TypeDescriptor>();
307307
}
308308
catch (IntrospectionException ex) {
309309
throw new FatalBeanException("Failed to obtain BeanInfo for class [" + beanClass.getName() + "]", ex);

0 commit comments

Comments
 (0)