@ -70,7 +70,8 @@ public class StandardTypeConverter implements TypeConverter {
@@ -70,7 +70,8 @@ public class StandardTypeConverter implements TypeConverter {
// TODO 3 Q In case of a loss in information with coercion to a narrower type, should we throw an exception?
@ -95,12 +96,12 @@ public class StandardTypeConverter implements TypeConverter {
@@ -95,12 +96,12 @@ public class StandardTypeConverter implements TypeConverter {
@ -265,9 +266,14 @@ public class StandardTypeConverter implements TypeConverter {
@@ -265,9 +266,14 @@ public class StandardTypeConverter implements TypeConverter {
thrownewSpelException(SpelMessages.PROBLEM_DURING_TYPE_CONVERSION,"long value '"+value
+"' cannot be represented as an int");
}
}else
returnnull;
}
@ -276,7 +282,7 @@ public class StandardTypeConverter implements TypeConverter {
@@ -276,7 +282,7 @@ public class StandardTypeConverter implements TypeConverter {