Add missing @since tag to ClassFile.JAVA_23_VERSION

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 23
    • Component/s: core-libs
    • None
    • minimal
    • Java API
    • SE

      Summary

      Add an @since tag and an informative description toClassFile.JAVA_23_VERSION.

      Problem

      When the field ClassFile.JAVA_23_VERSION was added, it did not include an @since tag and did not have an informative description

      Solution

      Add the customary information.

      Specification

      diff --git a/src/java.base/share/classes/java/lang/classfile/ClassFile.java b/src/java.base/share/classes/java/lang/classfile/ClassFile.java
      index 27c2f18fe96..68618252999 100644
      --- a/src/java.base/share/classes/java/lang/classfile/ClassFile.java
      +++ b/src/java.base/share/classes/java/lang/classfile/ClassFile.java
      @@ -1,5 +1,5 @@
       /*
      - * Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
      + * Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
        * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
        *
        * This code is free software; you can redistribute it and/or modify it
      @@ -1475,7 +1475,10 @@ default List<VerifyError> verify(Path path) throws IOException {
           /** The class major version of JAVA_22. */
           int JAVA_22_VERSION = 66;
       
      -    /** 67 */
      +    /**
      +     * The class major version of JAVA_23.
      +     * @since 23
      +     */
           int JAVA_23_VERSION = 67;
       
           /**
      

            Assignee:
            Joe Darcy
            Reporter:
            Joe Darcy
            Adam Sotona, Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: