<div dir="ltr">Hello Amber-dev,<div><br></div><div>In the String Templates draft specification, I don't see any changes in JLS Chapter 14.8 Expression Statements. This makes me think that Template Expressions are not allowed to be used as statements. However javac in jdk21-ea accepts a Template Expression used as a statement without reporting any error. (I am using build 21-ea+30-2426). So it appears to me either the specification or javac is incorrect. Which one should I believe?</div><div><br></div><div>Example code:</div><div>```</div><div>class TemplateExpressionStatement {<br>    public static void main(String[] args) {<br>        STR."\{}";<br>    }<br>}<br></div><div>```</div><div><br></div><div>Bas</div><div></div></div>