Skip to content

Commit 4831ca2

Browse files
committed
fixed MethodInvokingJobDetailFactoryBean for compatibility with Quartz 2.0/2.1 (SPR-8889)
1 parent 1bfa701 commit 4831ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/MethodInvokingJobDetailFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public class MethodInvokingJobDetailFactoryBean extends ArgumentConvertingMethod
9494
try {
9595
Class jobExecutionContextClass =
9696
QuartzJobBean.class.getClassLoader().loadClass("org.quartz.JobExecutionContext");
97-
setResultMethod = jobExecutionContextClass.getMethod("setResult");
97+
setResultMethod = jobExecutionContextClass.getMethod("setResult", Object.class);
9898
}
9999
catch (Exception ex) {
100100
throw new IllegalStateException("Incompatible Quartz API: " + ex);

0 commit comments

Comments
 (0)