Closed
Description
Laurent Bonnet opened BATCH-869 and commented
Hello,
When using the method stepExecution.getEndTime() in a StepExecutionListener or the method JobExecution.getStartTime() in a JobExecutionListener, the End Time is null.
For the StepExecutionListener, I think it comes from the fact that all the registered listeners are called before the setEndTime() method().
The setEndTime is called on the finally block of public final void execute(StepExecution stepExecution) on line 211 and the registerd listeners are called on line 181 : exitStatus = exitStatus.and(getCompositeListener().afterStep(stepExecution));
Affects: 1.1.2