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

Typo in SpEL Evaluation Context Sample [SPR-17581] #22113

Closed
spring-issuemaster opened this Issue Dec 8, 2018 · 0 comments

Comments

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

spring-issuemaster commented Dec 8, 2018

Amir Pashazadeh opened SPR-17581 and commented

In the sample it is written

EvaluationContext context = SimpleEvaluationContext().forReadOnlyDataBinding().build();

but it must be

EvaluationContext context = SimpleEvaluationContext.forReadOnlyDataBinding().build();

And parentheses are redundant.


Affects: 5.1.3

Reference URL: https://docs.spring.io/spring/docs/5.1.3.RELEASE/spring-framework-reference/core.html#expressions-type-conversion

Referenced from: commits b00f98f, 288c97b, 474ac2d

Backported to: 5.0.12, 4.3.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment