This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git


The following commit(s) were added to refs/heads/master by this push:
     new 9085ff25 Add Const.MAJOR_27.
9085ff25 is described below

commit 9085ff2500ba6301e451e9946d59bfecee4b66d1
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jul 7 07:47:39 2026 -0400

    Add Const.MAJOR_27.
    
    Add Const.MINOR_27.
---
 src/changes/changes.xml                      |  2 ++
 src/main/java/org/apache/bcel/Const.java     | 16 ++++++++++++++++
 src/test/java/org/apache/bcel/ConstTest.java |  6 ++++++
 3 files changed, 24 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1e144dfb..2cab7cbd 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -82,6 +82,8 @@ The <action> type attribute can be add,update,fix,remove.
       <!-- ADD -->
       <action                  type="add" dev="ggregory" due-to="nbauma109, 
Gary Gregory">Add support for permitted subclasses #493.</action>
       <action                  type="add" dev="ggregory" due-to="nbauma109, 
Gary Gregory">Add RecordComponentInfo.getAttribute(byte tag)#494.</action>
+      <action                  type="add" dev="ggregory" due-to="Gary 
Gregory">Add Const.MAJOR_27.</action>
+      <action                  type="add" dev="ggregory" due-to="Gary 
Gregory">Add Const.MINOR_27.</action>
       <!-- UPDATE -->
       <action                  type="update" dev="ggregory" due-to="Gary 
Gregory">Bump org.apache.commons:commons-parent from 95 to 102.</action>
       <action                  type="update" dev="ggregory" due-to="Gary 
Gregory, Dependabot">Bump org.jetbrains.kotlin:kotlin-stdlib from 2.3.0 to 
2.3.20 #497.</action>
diff --git a/src/main/java/org/apache/bcel/Const.java 
b/src/main/java/org/apache/bcel/Const.java
index 60336ef0..357534ee 100644
--- a/src/main/java/org/apache/bcel/Const.java
+++ b/src/main/java/org/apache/bcel/Const.java
@@ -335,6 +335,14 @@ public final class Const {
      */
     public static final short MINOR_26 = 0;
 
+    /**
+     * Minor version number of class files for Java 27: {@value}.
+     *
+     * @see #MAJOR_27
+     * @since 6.13.0
+     */
+    public static final short MINOR_27 = 0;
+
     /**
      * Major version number of class files for Java 14: {@value}.
      *
@@ -439,6 +447,14 @@ public final class Const {
      */
     public static final short MAJOR_26 = 70;
 
+    /**
+     * Major version number of class files for Java 26: {@value}.
+     *
+     * @see #MINOR_27
+     * @since 6.13.0
+     */
+    public static final short MAJOR_27 = 71;
+
     /**
      * Default major version number. Class file is for Java 1.1: {@value}.
      *
diff --git a/src/test/java/org/apache/bcel/ConstTest.java 
b/src/test/java/org/apache/bcel/ConstTest.java
index 5f3e33d0..ef481c25 100644
--- a/src/test/java/org/apache/bcel/ConstTest.java
+++ b/src/test/java/org/apache/bcel/ConstTest.java
@@ -58,6 +58,12 @@ class ConstTest {
         assertEquals(0, Const.MINOR_26);
     }
 
+    @Test
+    void testJava27() throws Exception {
+        assertEquals(71, Const.MAJOR_27);
+        assertEquals(0, Const.MINOR_27);
+    }
+
     /**
      * Tests that we do not break binary compatibility with BCEL-330.
      */

Reply via email to