From 12bc8196d4340cdf0e824e04137c6fe0cc8a2e33 Mon Sep 17 00:00:00 2001 From: Ivan Gerasimov Date: Wed, 9 Jan 2019 06:18:33 -0800 Subject: [PATCH] 8216413: Long.parseLong() is specified to throw unless string contains parsable {@code int}; should be {@code long} Reviewed-by: clanger --- src/java.base/share/classes/java/lang/Long.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.base/share/classes/java/lang/Long.java b/src/java.base/share/classes/java/lang/Long.java index 790e4deb675..f75ade48abe 100644 --- a/src/java.base/share/classes/java/lang/Long.java +++ b/src/java.base/share/classes/java/lang/Long.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -731,7 +731,7 @@ public final class Long extends Number * {@code endIndex} or if {@code endIndex} is greater than * {@code s.length()}. * @throws NumberFormatException if the {@code CharSequence} does not - * contain a parsable {@code int} in the specified + * contain a parsable {@code long} in the specified * {@code radix}, or if {@code radix} is either smaller than * {@link java.lang.Character#MIN_RADIX} or larger than * {@link java.lang.Character#MAX_RADIX}.