Skip to content

Commit

Permalink
Add Const.MAJOR_24
Browse files Browse the repository at this point in the history
Add Const.MINOR_24
  • Loading branch information
garydgregory committed Jul 13, 2024
1 parent 8f87b81 commit 2d95820
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ The <action> type attribute can be add,update,fix,remove.
<action type="update" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_22.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_23.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_23.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_24.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_24.</action>
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot">Bump tests from org.assertj:assertj-core 3.25.3 to 3.26.3 #322, #332.</action>
<action type="update" dev="ggregory" due-to="Dependabot">Bump tests from org.jetbrains.kotlin:kotlin-stdlib 1.9.23 to 2.0.0 #309, #318.</action>
Expand Down
18 changes: 17 additions & 1 deletion src/main/java/org/apache/bcel/Const.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,21 @@ public final class Const {
public static final short MINOR_22 = 0;

/**
* Minor version number of class files for Java 22: {@value}.
* Minor version number of class files for Java 23: {@value}.
*
* @see #MAJOR_23
* @since 6.10.0
*/
public static final short MINOR_23 = 0;

/**
* Minor version number of class files for Java 24: {@value}.
*
* @see #MAJOR_24
* @since 6.10.0
*/
public static final short MINOR_24 = 0;

/**
* Major version number of class files for Java 14: {@value}.
*
Expand Down Expand Up @@ -388,6 +396,14 @@ public final class Const {
*/
public static final short MAJOR_23 = 67;

/**
* Major version number of class files for Java 24: {@value}.
*
* @see #MINOR_24
* @since 6.10.0
*/
public static final short MAJOR_24 = 68;

/**
* Default major version number. Class file is for Java 1.1: {@value}.
*
Expand Down
6 changes: 6 additions & 0 deletions src/test/java/org/apache/bcel/ConstTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@ public void testJava23() throws Exception {
assertEquals(67, Const.MAJOR_23);
assertEquals(0, Const.MINOR_23);
}

@Test
public void testJava24() throws Exception {
assertEquals(68, Const.MAJOR_24);
assertEquals(0, Const.MINOR_24);
}
}

0 comments on commit 2d95820

Please sign in to comment.