Skip to content

Incorrect SpEL example in reference documentation [SPR-16111] #20659

@spring-projects-issues

Description

@spring-projects-issues

Sviatoslav Hryb opened SPR-16111 and commented

Spring Framework Reference Core Technologies https://docs.spring.io/spring/docs/current/spring-framework-reference/pdf/core.pdf contains incorrect code fragment in section 4.5.6. Methods.
The incorrect code fragment is: ```
// string literal, evaluates to "bc"
String c = parser.parseExpression("'abc'.substring(2, 3)").getValue(String.class);

Because string literal, evaluates to "c" but not to "bc"

Referenced from: commits f965123, 5867ea0

Backported to: 4.3.13

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions