From 6fe5871e91225a32bf83d5211aa3c0f98d5192ce Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 20 May 2010 08:30:32 +0000 Subject: [PATCH] check for "org.joda.time.LocalDate" in order to catch JodaTime 1.3 and higher only (SPR-7222) --- .../format/support/FormattingConversionServiceFactoryBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.springframework.context/src/main/java/org/springframework/format/support/FormattingConversionServiceFactoryBean.java b/org.springframework.context/src/main/java/org/springframework/format/support/FormattingConversionServiceFactoryBean.java index 161d27b7fc8..163b783f661 100644 --- a/org.springframework.context/src/main/java/org/springframework/format/support/FormattingConversionServiceFactoryBean.java +++ b/org.springframework.context/src/main/java/org/springframework/format/support/FormattingConversionServiceFactoryBean.java @@ -49,7 +49,7 @@ public class FormattingConversionServiceFactoryBean implements FactoryBean, InitializingBean { private static final boolean jodaTimePresent = ClassUtils.isPresent( - "org.joda.time.DateTime", FormattingConversionService.class.getClassLoader()); + "org.joda.time.LocalDate", FormattingConversionService.class.getClassLoader()); private Set converters;