Avoid relying on runtime constructor order for argument conversion

This commit is contained in:
Juergen Hoeller 2018-07-24 01:04:47 +02:00
parent 1b09718104
commit 5f51e86185
1 changed files with 1 additions and 1 deletions

View File

@ -1835,7 +1835,7 @@ public class DefaultListableBeanFactoryTests {
private RootBeanDefinition createConstructorDependencyBeanDefinition(int age) {
RootBeanDefinition bd = new RootBeanDefinition(ConstructorDependency.class);
bd.setScope(RootBeanDefinition.SCOPE_PROTOTYPE);
bd.getConstructorArgumentValues().addGenericArgumentValue(String.valueOf(age));
bd.getConstructorArgumentValues().addGenericArgumentValue(age);
return bd;
}