getBean(name, type) attempts type conversion if necessary (SPR-8480)

This commit is contained in:
Juergen Hoeller 2011-06-22 20:54:02 +00:00
parent e0d558b084
commit 4664366aca
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ public class CommonAnnotationBeanPostProcessorTests {
TestBean tb4 = new TestBean();
bf.registerSingleton("testBean4", tb4);
NestedTestBean tb6 = new NestedTestBean();
bf.registerSingleton("value", new Object());
bf.registerSingleton("value", "5");
bf.registerSingleton("xy", tb6);
bf.registerAlias("xy", "testBean9");