fixed accidental breakage in bean class resolution with tempClassLoader

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2640 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller 2009-12-13 16:07:03 +00:00
parent a03c3e30a1
commit 082111871b
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.util.Assert;
import org.springframework.util.ClassUtils;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
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 {
if (typesToMatch != null) {
if (!ObjectUtils.isEmpty(typesToMatch)) {
ClassLoader tempClassLoader = getTempClassLoader();
if (tempClassLoader != null) {
if (tempClassLoader instanceof DecoratingClassLoader) {