Skip to content

Commit e377fc0

Browse files
committed
BeanWrapperImpl.setPropertyValue throws InvalidPropertyException with correct property value for nested collection case
Issue: SPR-12866
1 parent d05fc2e commit e377fc0

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
@@ -1055,7 +1055,7 @@ else if (propValue instanceof Map) {
10551055
else {
10561056
throw new InvalidPropertyException(getRootClass(), this.nestedPath + propertyName,
10571057
"Property referenced in indexed property path '" + propertyName +
1058-
"' is neither an array nor a List nor a Map; returned value was [" + pv.getValue() + "]");
1058+
"' is neither an array nor a List nor a Map; returned value was [" + propValue + "]");
10591059
}
10601060
}
10611061

0 commit comments

Comments
 (0)