Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
10.0
-
None
-
Unknown
-
N/A
-
N/A
-
Description
When defining an AbstractJob implementation like so:
MyCustomJob.java
public class MyCustomJob extends AbstractJob<CustomJobRequest, CustomJobStatus>
… with the following classes :
CustomJobRequest.java
public class CustomJobRequest extends DefaultRequest
CustomJobStatus.java
public class CustomJobStatus extends DefaultJobStatus<CustomJobRequest>
When instantiated with the JobExecutor#execute(), the job MyCustomJob is not initialized with an instance of CustomJobStatus but with an instance of DefaultJobStatus.
It seems that the problem comes from https://github.com/xwiki/xwiki-commons/blob/44c1adfacdcbec59d41496587289b70d0deb1986/xwiki-commons-core/xwiki-commons-job/src/main/java/org/xwiki/job/AbstractJob.java#L323