> 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: Clean up new StringTemplate creation Centralized StringTemplate creation in StringTemplateImplFactory. Added consistent defensive copying of lists. Changed List<Object> to List<?> on StringTemplate.interpolate and StringTemplate.of. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/10889/files - new: https://git.openjdk.org/jdk/pull/10889/files/1af7dc15..39c63c01 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=10889&range=15 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10889&range=14-15 Stats: 189 lines in 6 files changed: 103 ins; 52 del; 34 mod Patch: https://git.openjdk.org/jdk/pull/10889.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10889/head:pull/10889 PR: https://git.openjdk.org/jdk/pull/10889