Skip to content
Permalink
Browse files

8242472: Comment for unused PreviewFeature.Feature.TEXT_BLOCKS enum

Reviewed-by: abuckley
  • Loading branch information
JimLaskey committed Apr 9, 2020
1 parent 1d7dee9 commit b7d5172b8941cca226d09ee69fbbaaf68a750219
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/java.base/share/classes/jdk/internal/PreviewFeature.java
@@ -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,
;
}

0 comments on commit b7d5172

Please sign in to comment.