Skip to content

Incorrect value in InvalidPropertyException message from BeanWrapperImpl.setPropertyValue [SPR-12866] #17464

@spring-projects-issues

Description

@spring-projects-issues

Phil Webb opened SPR-12866 and commented

Line 1056:

I believe that:

}
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() + "]");
}

Should probably be:

}
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 [" + propValue + "]");
}

Affects: 3.2.13, 4.1.6

Backported to: 3.2.14

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions