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

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

commit 7ec98dc7d75c7646cb7a87093bb5bc7387d11131
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Dec 30 15:34:10 2025 +0000

    Add Const.MAJOR_26
    
    Add Const.MINOR_26
---
 src/changes/changes.xml                      |  4 +++-
 src/main/java/org/apache/bcel/Const.java     | 16 ++++++++++++++++
 src/test/java/org/apache/bcel/ConstTest.java |  6 ++++++
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1528719d..c1e409b2 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -59,12 +59,14 @@ The <action> type attribute can be add,update,fix,remove.
   Defining changes.version allows one to create the RN without first removing 
the SNAPSHOT suffix.
    -->
   <body>
-    <release version="6.11.1" date="YYYY-MM-DD" description="This is a feature 
and maintenance release. Java 8 or later is required.">
+    <release version="6.12.0" date="YYYY-MM-DD" description="This is a feature 
and maintenance release. Java 8 or later is required.">
       <!-- FIX -->
       <action                  type="fix" dev="fmantz" due-to="Gary 
Gregory">Fix infinite loop in example.TransitiveHull #476.</action>
       <action                  type="fix" dev="ggregory" due-to="Gary 
Gregory">Fix Apache RAT plugin console warnings.</action>
       <action                  type="fix" dev="ggregory" due-to="Gary 
Gregory">Fix malformed Javadoc comments.</action>
       <!-- ADD -->
+      <action                  type="add" dev="ggregory" due-to="Gary 
Gregory">Add Const.MAJOR_26.</action>
+      <action                  type="add" dev="ggregory" due-to="Gary 
Gregory">Add Const.MINOR_26.</action>
       <!-- UPDATE -->
       <action                  type="update" dev="ggregory" due-to="Gary 
Gregory">Bump org.apache.commons:commons-parent from 89 to 93 #482.</action>
       <action                  type="update" dev="ggregory" due-to="Gary 
Gregory">[test] Bump org.jetbrains.kotlin:kotlin-stdlib from 2.2.20 to 2.3.0 
#481.</action>
diff --git a/src/main/java/org/apache/bcel/Const.java 
b/src/main/java/org/apache/bcel/Const.java
index 4b072f00..6745dc0c 100644
--- a/src/main/java/org/apache/bcel/Const.java
+++ b/src/main/java/org/apache/bcel/Const.java
@@ -326,6 +326,14 @@ public final class Const {
      */
     public static final short MINOR_25 = 0;
 
+    /**
+     * Minor version number of class files for Java 26: {@value}.
+     *
+     * @see #MAJOR_26
+     * @since 6.12.0
+     */
+    public static final short MINOR_26 = 0;
+
     /**
      * Major version number of class files for Java 14: {@value}.
      *
@@ -422,6 +430,14 @@ public final class Const {
      */
     public static final short MAJOR_25 = 69;
 
+    /**
+     * Major version number of class files for Java 26: {@value}.
+     *
+     * @see #MINOR_26
+     * @since 6.12.0
+     */
+    public static final short MAJOR_26 = 70;
+
     /**
      * 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 dbbe71c8..3881bb75 100644
--- a/src/test/java/org/apache/bcel/ConstTest.java
+++ b/src/test/java/org/apache/bcel/ConstTest.java
@@ -51,4 +51,10 @@ class ConstTest {
         assertEquals(69, Const.MAJOR_25);
         assertEquals(0, Const.MINOR_25);
     }
+
+    @Test
+    void testJava26() throws Exception {
+        assertEquals(70, Const.MAJOR_26);
+        assertEquals(0, Const.MINOR_26);
+    }
 }

Reply via email to