ICU-5509 Fixed a bug in the condition used for checking number grouping size in subparse in strict mode

X-SVN-Rev: 20663
This commit is contained in:
Yoshito Umaoka 2006-11-15 21:51:28 +00:00
parent 879e341b5f
commit cc0d123e94

View file

@ -1884,7 +1884,7 @@ public class DecimalFormat extends NumberFormat {
{
if (strictParse) {
if (backup != -1 ||
(lastGroup != -1 && position - lastGroup != groupingSize - 1)) {
(lastGroup != -1 && position - lastGroup != groupingSize + 1)) {
strictFail = true;
break;
}