fetch property value again after setting default value to protect against object copy

This commit is contained in:
Keith Donald
2011-01-07 16:16:32 +00:00
parent 3bb17974d8
commit 1ed03fc6ca

View File

@@ -600,7 +600,7 @@ public class BeanWrapperImpl extends AbstractPropertyAccessor implements BeanWra
private Object setDefaultValue(PropertyTokenHolder tokens) {
PropertyValue pv = createDefaultPropertyValue(tokens);
setPropertyValue(tokens, pv);
return pv.getValue();
return getPropertyValue(tokens);
}
private PropertyValue createDefaultPropertyValue(PropertyTokenHolder tokens) {
@@ -986,6 +986,7 @@ public class BeanWrapperImpl extends AbstractPropertyAccessor implements BeanWra
}
}
list.add(convertedValue);
System.out.println(list);
}
}
else if (propValue instanceof Map) {