On Thu, 23 Mar 2023 01:45:54 GMT, Chen Liang <[email protected]> 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