RFR: 8289797: tools/launcher/I18NArgTest.java fails on Japanese Windows environment [v3]

KIRIYAMA Takuya duke at openjdk.org
Fri Sep 16 08:34:50 UTC 2022


On Sat, 27 Aug 2022 00:20:46 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> KIRIYAMA Takuya has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8289797: tools/launcher/I18NArgTest.java fails on Japanese Windows
>
> test/jdk/tools/launcher/I18NArgTest.java line 147:
> 
>> 145:             for (int i = 0; i < sysPropVal.length(); i++) {
>> 146:                 sysPropHexVal = sysPropHexVal.concat(Integer.toHexString(sysPropVal.charAt(i)));
>> 147:             }
> 
> It's OK as it stands, but this loop could be replaced with a `HexFormat` one-liner.

I'm sorry, I can't replace this code with a HexFormat one-line. Do you have an example code?

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

PR: https://git.openjdk.org/jdk/pull/9389


More information about the core-libs-dev mailing list