Details
Description
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.