Skip to content

CronExpression::parse has invalid Javadoc #29884

@andrei-zagrebin

Description

@andrei-zagrebin

Affects: 5.3.24


Docs for spring-context org.springframework.scheduling.support.CronExpression#parse says:

In the "day of week" field, L stands for "the last day of the week". If prefixed by a number or three-letter name (i.e. dL or DDDL), it means "the last day of week d (or DDD) in the month".

Looks like it can be used without prefix, but it doesn't and the code throws en exception when there is not prefix before 'L' character.
So, the documentation doesn't match the code, and it seems to me that the documentation should be fixed.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions