BeanWrapperImpl.setPropertyValue throws InvalidPropertyException with correct property value for nested collection case

Issue: SPR-12866
(cherry picked from commit d506767)
This commit is contained in:
Juergen Hoeller
2015-05-11 19:56:19 +02:00
parent 64a039402a
commit dd73848e15
@@ -1025,7 +1025,7 @@ public class BeanWrapperImpl extends AbstractPropertyAccessor implements BeanWra
else {
throw new InvalidPropertyException(getRootClass(), this.nestedPath + propertyName,
"Property referenced in indexed property path '" + propertyName +
"' is neither an array nor a List nor a Map; returned value was [" + pv.getValue() + "]");
"' is neither an array nor a List nor a Map; returned value was [" + propValue + "]");
}
}