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

Improve exception message for failed property access in SpEL [SPR-11535] #16160

Closed
spring-projects-issues opened this issue Mar 11, 2014 · 0 comments
Assignees
Labels
in: core status: backported type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Mar 11, 2014

Oliver Drotbohm opened SPR-11535 and commented

In case property access for a bean property fails, SpEL's PropertyOrFieldReference currently throws an exception with the following message:

EL1008E:(pos 7): Field or property '…' cannot be found on object of type '…'

As PropertyOrFieldReference is only looking for public fields, it would be nice if that was reflected in the error message as one might be puzzled if the field actually exists but is not a public one.


Affects: 3.2.8, 4.0.2

Referenced from: commits 27cacf0, eeb82c4

Backported to: 3.2.9

@spring-projects-issues spring-projects-issues added status: backported type: enhancement in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.0.3 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: backported type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants