Skip to content

Commit

Permalink
Add Const.MAJOR_25
Browse files Browse the repository at this point in the history
Add Const.MINOR_25
  • Loading branch information
garydgregory committed Jan 11, 2025
1 parent 99c546e commit 7056283
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 @@ -64,6 +64,8 @@ The <action> type attribute can be add,update,fix,remove.
<action type="fix" dev="ggregory" due-to="Gary Gregory">Replace internal use of Locale.ENGLISH with Locale.ROOT.</action>
<action issue="BCEL-375" type="fix" dev="ggregory" due-to="J. Lewis Muir, Gary Gregory">Wrong permissions on bcel .jar file in binary .tar.gz distribution file.</action>
<!-- ADD -->
<action type="update" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_25.</action>
<action type="update" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_25.</action>
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0 #334, #341, #351.</action>
<action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">Bump org.jetbrains.kotlin:kotlin-stdlib from 2.0.0 to 2.1.0 #340, #347, #369, #390.</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 @@ -318,6 +318,14 @@ public final class Const {
*/
public static final short MINOR_24 = 0;

/**
* Minor version number of class files for Java 25: {@value}.
*
* @see #MAJOR_25
* @since 6.11.0
*/
public static final short MINOR_25 = 0;

/**
* Major version number of class files for Java 14: {@value}.
*
Expand Down Expand Up @@ -406,6 +414,14 @@ public final class Const {
*/
public static final short MAJOR_24 = 68;

/**
* Major version number of class files for Java 25: {@value}.
*
* @see #MINOR_25
* @since 6.11.0
*/
public static final short MAJOR_25 = 69;

/**
* 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 @@ -45,4 +45,10 @@ public void testJava24() throws Exception {
assertEquals(68, Const.MAJOR_24);
assertEquals(0, Const.MINOR_24);
}

@Test
public void testJava25() throws Exception {
assertEquals(69, Const.MAJOR_25);
assertEquals(0, Const.MINOR_25);
}
}

0 comments on commit 7056283

Please sign in to comment.