mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8367619: String.format in outOfRangeException uses wrong format specifier for String argument
Reviewed-by: fandreuzzi, rriggs, liach
This commit is contained in:
parent
c82070e635
commit
58007c0bcc
@ -230,7 +230,7 @@ public final class Util {
|
||||
|
||||
public static IllegalArgumentException outOfRangeException(int value, String fieldName, String typeName) {
|
||||
return new IllegalArgumentException(
|
||||
String.format("%s out of range of %d: %d", fieldName, typeName, value));
|
||||
String.format("%s out of range of %s: %d", fieldName, typeName, value));
|
||||
}
|
||||
|
||||
/// Ensures the given mask won't be truncated when written as an access flag
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user