Skip to content
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

CronSequenceGenerator examples in documentation are incorrect [SPR-15240] #19805

Closed
spring-issuemaster opened this issue Feb 9, 2017 · 1 comment
Assignees
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Feb 9, 2017

Jean-Baptiste Nizet opened SPR-15240 and commented

The javadoc of CronSequenceGenerator provides the following examples, which are incorrect:

  • "0 * 6,19 * * *" = 6:00 AM and 7:00 PM every day: this actually is every minute between 6:00 and 7:00, and between 19:00 and 20:00. To match the description, the cron expression should be "0 0 6,19 * * *".
  • "0 0/30 8-10 * * *" = 8:00, 8:30, 9:00, 9:30 and 10 o'clock every day. 10:30 is missing. The description should be "8:00, 8:30, 9:00, 9:30, 10:00 and 10:30 every day".

Affects: 4.3.6

Referenced from: commits e1bb697, 6e93834

@spring-issuemaster
Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Feb 9, 2017

Juergen Hoeller commented

Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.