fix double checked locking with volatile (#649)

This commit is contained in:
shenjianeng
2020-01-31 01:15:45 +08:00
committed by GitHub
parent 80e36d4b97
commit 4678998351

View File

@@ -365,7 +365,7 @@ public class GenericScope implements Scope, BeanFactoryPostProcessor,
private final ObjectFactory<?> objectFactory;
private Object bean;
private volatile Object bean;
private Runnable callback;