Skip to content

Commit

Permalink
Add Const.MAJOR_23
Browse files Browse the repository at this point in the history
Add Const.MINOR_23
  • Loading branch information
garydgregory committed Jul 13, 2024
1 parent e9aa068 commit 8f87b81
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ The <action> type attribute can be add,update,fix,remove.
<action type="update" dev="ggregory" due-to="nbauma109, Gary Gregory, Mark Roberts">Add accessors to model and unit tests, Javadoc #183.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_22.</action>
<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>
<!-- 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
16 changes: 16 additions & 0 deletions src/main/java/org/apache/bcel/Const.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,14 @@ public final class Const {
*/
public static final short MINOR_22 = 0;

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

/**
* Major version number of class files for Java 14: {@value}.
*
Expand Down Expand Up @@ -372,6 +380,14 @@ public final class Const {
*/
public static final short MAJOR_22 = 66;

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

/**
* 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 @@ -31,4 +31,10 @@ public void testJava22() throws Exception {
assertEquals(66, Const.MAJOR_22);
assertEquals(0, Const.MINOR_22);
}

@Test
public void testJava23() throws Exception {
assertEquals(67, Const.MAJOR_23);
assertEquals(0, Const.MINOR_23);
}
}

0 comments on commit 8f87b81

Please sign in to comment.