RFR: JDK-8285932 Implementation of JEP-430 String Templates (Preview) [v13]

Jim Laskey jlaskey at openjdk.org
Wed Nov 9 23:49:01 UTC 2022


On Mon, 7 Nov 2022 18:12:39 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Internalize FormatConcatItem
>
> src/java.base/share/classes/java/util/FormatItem.java line 540:
> 
>> 538:                 char ch = (char)getCharMH.invokeExact(buffer, start + i);
>> 539:                 putCharMH.invokeExact(buffer, start + i, (int)Character.toUpperCase(ch));
>> 540:             }
> 
> Some characters may produce multiple uppercase characters, such as "fi" ligature ('\ufb01' -> "FI"), also this should consider locale, e.g. the case for Turkish dotless i.

Switch to Formatter if upper selected

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

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


More information about the compiler-dev mailing list