Skip to content

Commit dd73848

Browse files
committed
BeanWrapperImpl.setPropertyValue throws InvalidPropertyException with correct property value for nested collection case
Issue: SPR-12866 (cherry picked from commit d506767)
1 parent 64a0394 commit dd73848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ else if (propValue instanceof Map) {
10251025
else {
10261026
throw new InvalidPropertyException(getRootClass(), this.nestedPath + propertyName,
10271027
"Property referenced in indexed property path '" + propertyName +
1028-
"' is neither an array nor a List nor a Map; returned value was [" + pv.getValue() + "]");
1028+
"' is neither an array nor a List nor a Map; returned value was [" + propValue + "]");
10291029
}
10301030
}
10311031

0 commit comments

Comments
 (0)