Browse Source

correctly handle ParseException from Formatter for String->String case (SPR-8944)

pull/11/head
Juergen Hoeller 14 years ago
parent
commit
d331c5d1c9
  1. 2
      org.springframework.beans/src/main/java/org/springframework/beans/TypeConverterDelegate.java

2
org.springframework.beans/src/main/java/org/springframework/beans/TypeConverterDelegate.java

@ -244,7 +244,7 @@ class TypeConverterDelegate { @@ -244,7 +244,7 @@ class TypeConverterDelegate {
}
if (firstAttemptEx != null) {
if (editor == null) {
if (editor == null && convertedValue == newValue) {
throw firstAttemptEx;
}
logger.debug("Original ConversionService attempt failed - ignored since " +

Loading…
Cancel
Save