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

JobExecution instance returned by StepExecution does not contain JobInstance or JobInstanceId [BATCH-1789] #1800

Closed
spring-issuemaster opened this issue Sep 2, 2011 · 1 comment

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Sep 2, 2011

Joshua Moore opened BATCH-1789 and commented

The step execution returned from the SimpleJobExplorer does not return a job execution instance with any reference to the job instance. Both getJobInstance() and getJobInstanceId() return null. The constructor called for creating the job execution is calling the JobExecution(Long id) constructor which according to the comments within the source should only be used for transient instances.

I am not sure if this is a defect or if this is by design.

It would be helpful if the Javadocs noted that the StepExecution returned by the SimpleJobExplorer.getStepExecution(Long jobExecutionId, Long stepExecutionId) only includes a transient instance of the JobExecution. To obtain an non-transient instance one should use SimpleJobExplorer.getJobExecution(Long jobExecutionId).


Affects: 2.1.8

@spring-issuemaster
Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Sep 2, 2011

Joshua Moore commented

Sorry this is a non-issue. The javadocs do in fact point this out. I apologize for the noise.

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
1 participant
You can’t perform that action at this time.