8055251: Re-examine Integer.parseInt and Long.parseLong methods

Reviewed-by: alanb
This commit is contained in:
Claes Redestad 2014-09-10 13:51:17 +01:00 committed by Alan Bateman
parent d04d69fea6
commit 1dc4b5e2f8
9 changed files with 147 additions and 309 deletions

View file

@ -358,7 +358,7 @@ public final class Period
if (start < 0 || end < 0) {
return 0;
}
int val = Integer.parseInt(text, 10, start, end);
int val = Integer.parseInt(text, start, end, 10);
try {
return Math.multiplyExact(val, negate);
} catch (ArithmeticException ex) {