diff --git a/CodenameOne/src/com/codename1/l10n/SimpleDateFormat.java b/CodenameOne/src/com/codename1/l10n/SimpleDateFormat.java index 7477b58d6b..9be2ce4759 100644 --- a/CodenameOne/src/com/codename1/l10n/SimpleDateFormat.java +++ b/CodenameOne/src/com/codename1/l10n/SimpleDateFormat.java @@ -757,8 +757,8 @@ int parseYear(String source, String token, int ofs) throws ParseException { if (year > (thisYear + 20)) { year -= 100; } + validateNumber(year, ofs, "year", 1000, thisYear + 1000); } - validateNumber(year, ofs, "year", 1000, thisYear + 1000); return year; }