mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8316629: j.text.DateFormatSymbols setZoneStrings() exception is unhelpful
Reviewed-by: naoto
This commit is contained in:
parent
496264c1f9
commit
ef49e6c0d7
1 changed files with 2 additions and 1 deletions
|
@ -612,7 +612,8 @@ public class DateFormatSymbols implements Serializable, Cloneable {
|
|||
for (int i = 0; i < newZoneStrings.length; ++i) {
|
||||
int len = newZoneStrings[i].length;
|
||||
if (len < 5) {
|
||||
throw new IllegalArgumentException();
|
||||
throw new IllegalArgumentException(String.format(
|
||||
"Row %s of the input array does not have a length of at least 5", i));
|
||||
}
|
||||
aCopy[i] = Arrays.copyOf(newZoneStrings[i], len);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue