Upgrade to Spring 2.5.2

This commit is contained in:
dsyer
2008-02-29 14:05:43 +00:00
parent 3c981017cd
commit fca1e65bdd
8 changed files with 99 additions and 140 deletions

View File

@@ -42,8 +42,7 @@ public class PropertyExtractingDelegatingItemWriter extends AbstractMethodInvoki
*/
public void write(Object item) throws Exception {
// helper for extracting property values from a bean
BeanWrapper beanWrapper = new BeanWrapperImpl();
beanWrapper.setWrappedInstance(item);
BeanWrapper beanWrapper = new BeanWrapperImpl(item);
Object[] methodArguments = new Object[fieldsUsedAsTargetMethodArguments.length];
for (int i = 0; i < fieldsUsedAsTargetMethodArguments.length; i++) {