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

Joe Darcy darcy at openjdk.org
Sun Nov 6 22:18:20 UTC 2022


On Thu, 3 Nov 2022 17:23:53 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 FormatConcatItem

src/java.base/share/classes/java/util/FormatProcessor.java line 38:

> 36: 
> 37: /**
> 38:  * This {@linkplain ValidatingProcessor yemplate processor} constructs a String

Typo: "yemplate processor".

src/java.base/share/classes/java/util/FormatProcessor.java line 56:

> 54:  * to produce a more performant formatter.
> 55:  *
> 56:  * @implSpec Since, values are in situ, argument indexing is unsupported.

Please avoid Latin phrases like "in situ" in the javadoc.

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

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


More information about the compiler-dev mailing list