<i18n dev> RFR: JDK-8285932 Implementation of JEP 430 String Templates (Preview) [v46]

Jim Laskey jlaskey at openjdk.org
Thu Mar 23 12:28:54 UTC 2023


On Thu, 23 Mar 2023 01:45:54 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Jim Laskey has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Tidy javadoc
>>  - Rename StringTemplate classes
>
> src/java.base/share/classes/java/lang/StringTemplate.java line 592:
> 
>> 590:          */
>> 591:         @PreviewFeature(feature=PreviewFeature.Feature.STRING_TEMPLATES)
>> 592:         public sealed interface Linkage permits FormatProcessor {
> 
> I fail to see any reason a user would call `linkage`; is there anything that's not covered by `TemplateRuntime::processStringTemplate`? And if users can't use this, this can just be relocated to one of the `jdk.internal` packages.

Linkage is unfinished business for the first preview. What we are working on is a managed construction of the BSM, a ProcessorFactory per se. The hope is that this will be flushed out for the next round.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/10889#discussion_r1146110189


More information about the i18n-dev mailing list