Question mark not correctly parsed at DoM field for Spring v5.3+.
jmrozanec opened this issue · 0 comments
jmrozanec commented
The following example was extracted from the release announcement
CronBuilder builder = CronBuilder.cron(cronDefinition)
.withDoW(on(1, SpecialChar.HASH, 1))
.withMonth(always())
.withDoM(on(SpecialChar.QUESTION_MARK))
.withHour(on(0))
.withMinute(on(0))
.withSecond(on(0));
Cron cron = builder.instance();
CronParser parser = new CronParser(cronDefinition);
Cron parsedCron = parser.parse("0 0 0 ? * MON#1");