On Mon, 31 Oct 2022 13:43:24 GMT, Jim Laskey <jlas...@openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/template/TemplateRuntime.java line 45: >> >>> 43: */ >>> 44: @PreviewFeature(feature=PreviewFeature.Feature.STRING_TEMPLATES) >>> 45: public final class TemplateRuntime { >> >> Why this class is public ? and it should be called `TemplateProcessors` >> linke all other classes in Java that store a bunch of static methods >> (Collections, Collectors, etc) > > Purely because of the BSM and BSMs access to internals of > `java.lang.template`. I'll work on moving the BSM to `jdk.internal`. and > access through `SharedSecrets`. Moved to internal class. ------------- PR: https://git.openjdk.org/jdk/pull/10889