fixed accidental breakage in bean class resolution with tempClassLoader

This commit is contained in:
Juergen Hoeller 2009-12-13 16:07:03 +00:00
parent 9d2f7934de
commit 929665d284
1 changed files with 2 additions and 1 deletions

View File

@ -69,6 +69,7 @@ import org.springframework.core.NamedThreadLocal;
import org.springframework.core.convert.ConversionService; import org.springframework.core.convert.ConversionService;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.util.ClassUtils; import org.springframework.util.ClassUtils;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.util.StringValueResolver; import org.springframework.util.StringValueResolver;
@ -1212,7 +1213,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
} }
private Class doResolveBeanClass(RootBeanDefinition mbd, Class... typesToMatch) throws ClassNotFoundException { private Class doResolveBeanClass(RootBeanDefinition mbd, Class... typesToMatch) throws ClassNotFoundException {
if (typesToMatch != null) { if (!ObjectUtils.isEmpty(typesToMatch)) {
ClassLoader tempClassLoader = getTempClassLoader(); ClassLoader tempClassLoader = getTempClassLoader();
if (tempClassLoader != null) { if (tempClassLoader != null) {
if (tempClassLoader instanceof DecoratingClassLoader) { if (tempClassLoader instanceof DecoratingClassLoader) {