Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-issuemaster opened this issue Mar 30, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Mar 30, 2015

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

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Mar 31, 2015

Juergen Hoeller commented

Good catch. I'm promoting this to a 'bug' and will backport it to 3.2.14 as well.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.