< prev index next > src/java.base/share/classes/java/lang/reflect/ClassFileFormatVersion.java
Print this page
* questions.
*/
package java.lang.reflect;
+ import java.lang.classfile.ClassFile;
+
/**
* Class file format versions of the Java virtual machine.
*
* See the appropriate edition of <cite>The Java Virtual Machine
* Specification</cite> for information about a particular class file
* @see <a
* href="https://docs.oracle.com/javase/specs/jvms/se26/html/index.html">
* <cite>The Java Virtual Machine Specification, Java SE 26 Edition</cite></a>
*/
RELEASE_26(70),
- ; // Reduce code churn when appending new constants
+
+ // Reduce code churn when appending new constants
// Note to maintainers: when adding constants for newer releases,
// the implementation of latest() must be updated too.
+ /// The preview features of Valhalla.
+ /// @since 25
+ CURRENT_PREVIEW_FEATURES(ClassFile.latestMajorVersion());
+
private final int major;
private ClassFileFormatVersion(int major) {
this.major = major;
}
< prev index next >