File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
src/main/java/io/smallrye/classfile Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -1038,6 +1038,14 @@ default List<VerifyError> verify(Path path) throws IOException {
10381038 */
10391039 int JAVA_26_VERSION = 70 ;
10401040
1041+ /**
1042+ * The class major version introduced by Java SE 27, {@value}.
1043+ *
1044+ * @see ClassFileFormatVersion#RELEASE_27
1045+ * @since 27
1046+ */
1047+ int JAVA_27_VERSION = 71 ;
1048+
10411049 /**
10421050 * A minor version number {@value} indicating a class uses preview features
10431051 * of a Java SE release since 12, for major versions {@value
@@ -1049,7 +1057,7 @@ default List<VerifyError> verify(Path path) throws IOException {
10491057 * {@return the latest class major version supported by the current runtime}
10501058 */
10511059 static int latestMajorVersion () {
1052- return JAVA_26_VERSION ;
1060+ return JAVA_27_VERSION ;
10531061 }
10541062
10551063 /**
Original file line number Diff line number Diff line change @@ -342,6 +342,18 @@ public enum ClassFileFormatVersion {
342342 * <cite>The Java Virtual Machine Specification, Java SE 26 Edition</cite></a>
343343 */
344344 RELEASE_26 (70 ),
345+
346+ /**
347+ * The version introduced by the Java Platform, Standard Edition
348+ * 27.
349+ *
350+ * @since 27
351+ *
352+ * @see <a
353+ * href="https://docs.oracle.com/en/java/javase/27/docs/specs/jvms/index.html">
354+ * <cite>The Java Virtual Machine Specification, Java SE 27 Edition</cite></a>
355+ */
356+ RELEASE_27 (71 ),
345357 ; // Reduce code churn when appending new constants
346358
347359 // Note to maintainers: when adding constants for newer releases,
@@ -357,7 +369,7 @@ private ClassFileFormatVersion(int major) {
357369 * {@return the latest class file format version}
358370 */
359371 public static ClassFileFormatVersion latest () {
360- return RELEASE_26 ;
372+ return RELEASE_27 ;
361373 }
362374
363375 /**
You can’t perform that action at this time.
0 commit comments