-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Christian Dupuis opened SPR-6977 and commented
The following short test problem fails with Spring 3.0.1:
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.core.GenericTypeResolver;
import org.springframework.core.io.Resource;
import org.springframework.jdbc.config.SortedResourcesFactoryBean;
public class GenericTypeResolverTest {
@Test
public void testArrayResolution() {
Class clazz = GenericTypeResolver.resolveTypeArgument(SortedResourcesFactoryBean.class, FactoryBean.class);
assertTrue(clazz.isArray());
assertTrue(clazz.getComponentType().equals(Resource.class));
}
}
Affects: 3.0.1
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement