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
commit 5ac1c2b0cfce2d9e8590570be0a87950a2da49b9 Author: Gary Gregory <[email protected]> AuthorDate: Sat Aug 22 08:04:56 2026 -0400 Add Const.MAJOR_28. Add Const.MINOR_2.8 --- src/changes/changes.xml | 2 ++ src/main/java/org/apache/bcel/Const.java | 18 +++++++++++++++++- 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 e66f1253..7902132d 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -93,6 +93,8 @@ The <action> type attribute can be add,update,fix,remove. <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> <action type="add" dev="ggregory" due-to="Gary Gregory">Add and use ArrayType.isElementType(Type).</action> + <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_28.</action> + <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_28.</action> <!-- UPDATE --> <action type="update" dev="ggregory" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 95 to 103.</action> <action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump org.jetbrains.kotlin:kotlin-stdlib from 2.3.0 to 2.4.20 (#497, #519).</action> diff --git a/src/main/java/org/apache/bcel/Const.java b/src/main/java/org/apache/bcel/Const.java index b17a85a8..99c05aa8 100644 --- a/src/main/java/org/apache/bcel/Const.java +++ b/src/main/java/org/apache/bcel/Const.java @@ -343,6 +343,14 @@ public final class Const { */ public static final short MINOR_27 = 0; + /** + * Minor version number of class files for Java 28: {@value}. + * + * @see #MAJOR_28 + * @since 6.13.0 + */ + public static final short MINOR_28 = 0; + /** * Major version number of class files for Java 14: {@value}. * @@ -448,13 +456,21 @@ public final class Const { public static final short MAJOR_26 = 70; /** - * Major version number of class files for Java 26: {@value}. + * Major version number of class files for Java 27: {@value}. * * @see #MINOR_27 * @since 6.13.0 */ public static final short MAJOR_27 = 71; + /** + * Major version number of class files for Java 27: {@value}. + * + * @see #MINOR_28 + * @since 6.13.0 + */ + public static final short MAJOR_28 = 72; + /** * 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 ef481c25..e09a6f23 100644 --- a/src/test/java/org/apache/bcel/ConstTest.java +++ b/src/test/java/org/apache/bcel/ConstTest.java @@ -64,6 +64,12 @@ class ConstTest { assertEquals(0, Const.MINOR_27); } + @Test + void testJava28() throws Exception { + assertEquals(72, Const.MAJOR_28); + assertEquals(0, Const.MINOR_28); + } + /** * Tests that we do not break binary compatibility with BCEL-330. */
