changeset 60856:b559c7e7c4d4

8242472: Comment for unused PreviewFeature.Feature.TEXT_BLOCKS enum Reviewed-by: abuckley
author jlaskey
date Thu, 09 Apr 2020 16:32:22 -0300
parents 695e3037028c
children da27f941f86c
files src/java.base/share/classes/jdk/internal/PreviewFeature.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/jdk/internal/PreviewFeature.java	Thu Apr 09 21:29:34 2020 +0300
+++ b/src/java.base/share/classes/jdk/internal/PreviewFeature.java	Thu Apr 09 16:32:22 2020 -0300
@@ -55,7 +55,13 @@
 
     public enum Feature {
         PATTERN_MATCHING_IN_INSTANCEOF,
-        TEXT_BLOCKS, // 8242284: needs to be removed after JDK 15
+        // 8242284:
+        // The TEXT_BLOCKS enum constant is not used in the JDK 15 codebase, but
+        // exists to support the bootcycle build of JDK 15. The bootcycle build
+        // of JDK 15 is performed with JDK 14 and the PreviewFeature type from
+        // JDK 15. Since the JDK 14 codebase uses the enum constant, it is
+        // necessary for PreviewFeature in JDK 15 to declare the enum constant.
+        TEXT_BLOCKS,
         RECORDS,
         ;
     }