fetch property value again after setting default value to protect against object copy
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user