8316629: j.text.DateFormatSymbols setZoneStrings() exception is unhelpful
Reviewed-by: naoto
This commit is contained in:
parent
496264c1f9
commit
ef49e6c0d7
@ -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…
Reference in New Issue
Block a user