Skip to content

PropertyReferenceException message should clearly indicate the property name #2395

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

Closed
cebence opened this issue Jun 28, 2021 · 0 comments
Closed
Assignees
Labels
type: task A general task

Comments

@cebence
Copy link

cebence commented Jun 28, 2021

The missing property should be clearly indicated in the error message so it could be easily identified by the developer. For example, in the error message PropertyReferenceException: No property name found for type MyClass! the property named "name" fits too perfectly in the sentence which made me not identify the property name.

The error message template should use quotes to make it more clear, i.e. No property '%s' found for type %s!.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 28, 2021
@mp911de mp911de self-assigned this Oct 25, 2021
@mp911de mp911de changed the title PropertyReferenceException message should clearly indicate the property name PropertyReferenceException message should clearly indicate the property name Jan 25, 2022
@mp911de mp911de added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 25, 2022
mp911de added a commit that referenced this issue Jan 25, 2022
Use single-quotes to indicate which elements belong to the underlying type and which are part of the textual message.

Closes #2395
mp911de added a commit that referenced this issue Jan 25, 2022
Use single-quotes to indicate which elements belong to the underlying type and which are part of the textual message.

Closes #2395
@mp911de mp911de added this to the 2.6.2 (2021.1.2) milestone Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

No branches or pull requests

3 participants