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

Vladimir Ivanov vlivanov at openjdk.org
Wed Nov 2 22:54:53 UTC 2022


On Wed, 2 Nov 2022 19:44:00 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

>> Enhance the Java programming language with string templates, which are similar to string literals but contain embedded expressions. A string template is interpreted at run time by replacing each expression with the result of evaluating that expression, possibly after further validation and transformation. This is a [preview language feature and API](http://openjdk.java.net/jeps/12).
>
> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Internalize TemplateSupport

src/java.base/share/classes/java/lang/StringConcatHelper.java line 359:

> 357:      * @since 19
> 358:      */
> 359:     @PreviewFeature(feature=PreviewFeature.Feature.STRING_TEMPLATES)

Just a passerby question: what's the point in marking non-public methods with `@PreviewFeature`?

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

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


More information about the i18n-dev mailing list