The test disables the BeanMetaDataManager.beanMetaDataCache and the AnnotationMetaDataProvider.configuredBeans - both are ConcurrentReferenceHashMap. That is the only way I could reproduce the same behavior at ValidatorImpl #929 in a unittest. I expect a cleanup of these maps under high load (due to the soft references).
|