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

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Oct 28 18:38:27 UTC 2022


On Fri, 28 Oct 2022 16:09:16 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Move StringConcatItem to FormatConcatItem
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java line 4139:
> 
>> 4137:             List<Type> typeArguments = interfaceType.getTypeArguments();
>> 4138: 
>> 4139:             if (typeArguments.size() == 2) {
> 
> Is this code correct? TemplateProcessor seems to have just one type argument.

Ah - `templateProcessorType` is not what it seems :-)

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

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


More information about the compiler-dev mailing list