fixed scheduling tests

This commit is contained in:
Juergen Hoeller
2011-02-10 23:04:40 +00:00
parent 0d70e08ac3
commit 716aa6974c
3 changed files with 20 additions and 11 deletions

View File

@@ -23,12 +23,13 @@ import java.lang.reflect.UndeclaredThrowableException;
import org.springframework.util.ReflectionUtils;
/**
* Variation of {@link MethodInvokingRunnable} meant to be used for processing
* Variant of {@link MethodInvokingRunnable} meant to be used for processing
* of no-arg scheduled methods. Propagates user exceptions to the caller,
* assuming that an error strategy for Runnables is in place.
*
* @author Juergen Hoeller
* @since 3.0.6
* @see org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor
*/
public class ScheduledMethodRunnable implements Runnable {
@@ -59,6 +60,7 @@ public class ScheduledMethodRunnable implements Runnable {
public void run() {
try {
ReflectionUtils.makeAccessible(this.method);
this.method.invoke(this.target);
}
catch (InvocationTargetException ex) {