Skip to content

SPEL: Inconsistent implementation of ReflectivePropertyResolver - canRead vs. read for null targets [SPR-5663] #10334

@spring-projects-issues

Description

@spring-projects-issues

Oliver Becker opened SPR-5663 and commented

The method canRead() in org.springframework.expression.spel.support.ReflectivePropertyResolver returns false if target is null.
However, the method read() returns null for a null target. According to the contract specified by canRead it should throw an AccessException in this case.


Affects: 3.0 M2

Referenced from: commits d34a2c5

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions