Browse Source

check for "org.joda.time.LocalDate" in order to catch JodaTime 1.3 and higher only (SPR-7222)

3.0.x
Juergen Hoeller 16 years ago
parent
commit
6fe5871e91
  1. 2
      org.springframework.context/src/main/java/org/springframework/format/support/FormattingConversionServiceFactoryBean.java

2
org.springframework.context/src/main/java/org/springframework/format/support/FormattingConversionServiceFactoryBean.java

@ -49,7 +49,7 @@ public class FormattingConversionServiceFactoryBean @@ -49,7 +49,7 @@ public class FormattingConversionServiceFactoryBean
implements FactoryBean<FormattingConversionService>, 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;

Loading…
Cancel
Save