From d31767eab8415e12898eefaded8dd550cf452fe2 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 27 Dec 2017 02:22:40 +0900 Subject: [PATCH] Fix an exception message in ScheduledAnnotationBeanPostProcessor Closes gh-1636 --- .../annotation/ScheduledAnnotationBeanPostProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java index 5dee5d1e23..c8a0ad1357 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java @@ -444,7 +444,7 @@ public class ScheduledAnnotationBeanPostProcessor } catch (NumberFormatException ex) { throw new IllegalArgumentException( - "Invalid fixedRateString value \"" + fixedRateString + "\" - cannot parse into integer"); + "Invalid fixedRateString value \"" + fixedRateString + "\" - cannot parse into long"); } tasks.add(this.registrar.scheduleFixedRateTask(new FixedRateTask(runnable, fixedRate, initialDelay))); }