diff --git a/src/java.base/share/classes/java/text/ListFormat.java b/src/java.base/share/classes/java/text/ListFormat.java index a3d54b16119..d0b1b2aaf2a 100644 --- a/src/java.base/share/classes/java/text/ListFormat.java +++ b/src/java.base/share/classes/java/text/ListFormat.java @@ -416,6 +416,8 @@ public final class ListFormat extends Format { * @return A list of string parsed from the {@code source}. * In case of error, returns null. * @throws NullPointerException if {@code source} or {@code parsePos} is null. + * @throws IndexOutOfBoundsException if the starting index given by + * {@code parsePos} is outside {@code source}. */ @Override public Object parseObject(String source, ParsePosition parsePos) {