Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8319428

Start of release updates for JDK 23

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P4
    • 23
    • core-libs
    • None
    • behavioral
    • minimal
    • Java API
    • SE

    Description

      Summary

      Update core libraries for JDK 23 by adding an enum constant to ClassFileFormatVersion.

      Problem

      With a new release, ClassFileFormatVersion needs a constant to model that release.

      Solution

      Add the new constant.

      Specification

      diff --git a/src/java.base/share/classes/java/lang/reflect/ClassFileFormatVersion.java b/src/java.base/share/classes/java/lang/reflect/ClassFileFormatVersion.java
      index ae1c48226ef..16c57a9463e 100644
      --- a/src/java.base/share/classes/java/lang/reflect/ClassFileFormatVersion.java
      +++ b/src/java.base/share/classes/java/lang/reflect/ClassFileFormatVersion.java
      @@ -294,6 +294,18 @@ public enum ClassFileFormatVersion {
            * <cite>The Java Virtual Machine Specification, Java SE 22 Edition</cite></a>
            */
           RELEASE_22(66),
      +
      +    /**
      +     * The version introduced by the Java Platform, Standard Edition
      +     * 23.
      +     *
      +     * @since 23
      +     *
      +     * @see <a
      +     * href="https://docs.oracle.com/javase/specs/jvms/se23/html/index.html">
      +     * <cite>The Java Virtual Machine Specification, Java SE 23 Edition</cite></a>
      +     */
      +    RELEASE_23(67),
           ; // Reduce code churn when appending new constants
      
           // Note to maintainers: when adding constants for newer releases,
      @@ -309,7 +321,7 @@ private ClassFileFormatVersion(int major) {
            * {@return the latest class file format version}
            */
           public static ClassFileFormatVersion latest() {
      -        return RELEASE_22;
      +        return RELEASE_23;
           }
      
           /**

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              darcy Joe Darcy
              Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: