From 998d1e8f8daf6511b5952d692c336d35a1e14380 Mon Sep 17 00:00:00 2001 From: Jason Feng Date: Wed, 23 Oct 2024 15:50:16 -0400 Subject: [PATCH] Temporarily restore PreviewFeature.Feature.FOREIGN & STRING_TEMPLATES To allow a Java 21 bootjdk. Signed-off-by: Jason Feng --- .../share/classes/jdk/internal/javac/PreviewFeature.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java b/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java index 64d1c84d133..576445f2bd0 100644 --- a/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java +++ b/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java @@ -90,6 +90,9 @@ public enum Feature { // Not used, but required by interim javac with Java 21 bootjdk. @JEP(number=445, title="Unnamed Classes and Instance Main Methods", status="Deprecated") UNNAMED_CLASSES, + FOREIGN, + @JEP(number=459, title="String Templates", status="Second Preview") + STRING_TEMPLATES, /** * A key for testing. */