RFR: JDK-8315457 Implementation of String Templates (Second Preview)

Jim Laskey jlaskey at openjdk.org
Mon Oct 16 14:35:37 UTC 2023


On Mon, 16 Oct 2023 14:27:05 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Update String Templates for a second preview. With the addition of
>> 
>> - Expression type and throws are determined from the `process` method of the processor type and not the processor type.
>> 
>> - Qualified `STR` and `RAW` are treated the same as unqualified `STR` and `RAW` .
>> 
>> - Raw (generic) process types are no longer an error.
>
> src/java.base/share/classes/java/lang/StringConcatHelper.java line 136:
> 
>> 134:      * @param value       value to mix in
>> 135:      * @return            new length and coder
>> 136:      * @since 22
> 
> The @since will be bumped when the feature becomes permanent, no need to bump it for the second preview.

Wasn't sure about that. Thx.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16202#discussion_r1360757078


More information about the security-dev mailing list