< prev index next > src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java
Print this page
/**
* Enum of preview features in the current release.
* Values should be annotated with the feature's {@code JEP}.
*/
public enum Feature {
+ @JEP(number=401, title="Value Classes and Objects", status = "Preview")
+ VALUE_OBJECTS,
+
// The JDK build process involves creating an interim javac which is then
// used to compile the rest of the JDK. The jdk.internal.javac.PreviewFeature
// annotation from the current sources is used when compiling interim javac.
// That's because the javac APIs of the current sources may be annotated with
// this annotation and they may be using the enum constants of the current sources.
// enum constants for preview features that are present in the bootstrap JDK.
// Older constants can be removed.
//
// For example, Class-File API became final in JDK 24. As soon as JDK 23 was dropped as
// the bootstrap JDK, the CLASSFILE_API enum constant became eligible for removal.
-
//---
@JEP(number=505, title="Structured Concurrency", status="Fifth Preview")
STRUCTURED_CONCURRENCY,
@JEP(number = 502, title = "Stable Values", status = "Preview")
STABLE_VALUES,
< prev index next >