mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8253459: Formatter treats index, width and precision > Integer.MAX_VALUE incorrectly
Reviewed-by: rriggs, smarks
This commit is contained in:
parent
b9db002fef
commit
080c707aab
5 changed files with 175 additions and 8 deletions
|
@ -27,7 +27,9 @@ package java.util;
|
|||
|
||||
/**
|
||||
* Unchecked exception thrown when the format width is a negative value other
|
||||
* than {@code -1} or is otherwise unsupported.
|
||||
* than {@code -1} or is otherwise unsupported. If a given format width is not
|
||||
* representable by an {@code int} type, then the value
|
||||
* {@code Integer.MIN_VALUE} will be used in the exception.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
@ -49,7 +51,8 @@ public class IllegalFormatWidthException extends IllegalFormatException {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the width
|
||||
* Returns the width. If the width is not representable by an {@code int},
|
||||
* then returns {@code Integer.MIN_VALUE}.
|
||||
*
|
||||
* @return The width
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue