jakartaee / batch

The Jakarta Batch project produces the Batch Specification and API.
https://projects.eclipse.org/projects/ee4j.batch
Apache License 2.0
13 stars 17 forks source link

JavaDoc clarification for JobExecution getStartTime() and getEndTime() return values #72

Open follis opened 4 years ago

follis commented 4 years ago

Originally opened as bug 6790 by jrperkinsjr

--------------Original Comment History---------------------------- Comment from = jrperkinsjr on 2015-03-04 20:00:34 +0000

For JobExecution.getStartTime() 1 the date should only be set when the batch status has been set to STARTED. For JobExecution.getEndTime() 2 the date should only be set when the batch status is either COMPLETED, FAILED or STOPPED. The return type should clarify what value is returned if the batch status has not reached of the allowed states. JBatch returns null which seems like the most logical value to return.