On Tue, 4 Apr 2023 15:16:19 GMT, Jim Laskey <jlas...@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: > > RuntimeException is the only exception type that can is deduced from a > lambda. src/java.base/share/classes/java/lang/StringTemplate.java line 577: > 575: */ > 576: static <R> Processor<R, RuntimeException> > of(Function<StringTemplate, R> process) { > 577: return process::apply; The wildcards are missing :) static <R> Processor<R, RuntimeException> of(Function<? super StringTemplate, ? extends R> process) { ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/10889#discussion_r1157431904