<i18n dev> RFR: 8253459: Formatter treats index, width and precision > Integer.MAX_VALUE incorrectly [v11]

Ian Graves igraves at openjdk.java.net
Wed Nov 18 22:52:07 UTC 2020


On Wed, 18 Nov 2020 22:30:21 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Ian Graves has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Exception message tweak
>
> src/java.base/share/classes/java/util/IllegalFormatArgumentIndexException.java line 66:
> 
>> 64: 
>> 65:         if (index == Integer.MIN_VALUE) {
>> 66:            return "Format argument index: (unrepresentable as int)";
> 
> Perhaps "(not representable as int)" is more readable.

After reading it a few times, I agree.

-------------

PR: https://git.openjdk.java.net/jdk/pull/516


More information about the i18n-dev mailing list