diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java index 486953f934..2acf630ec0 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java @@ -99,7 +99,7 @@ import org.springframework.core.Ordered; * * @Override * public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() { - * return MyAsyncUncaughtExceptionHandler(); + * return new MyAsyncUncaughtExceptionHandler(); * } * } *