Skip to content

Commit

Permalink
Add Const.MAJOR_21 and Const.MINOR_21
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 14, 2023
1 parent 6598a69 commit 9b1477c
Show file tree
Hide file tree
Showing 2 changed files with 18 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 @@ -72,6 +72,8 @@ The <action> type attribute can be add,update,fix,remove.
<action type="add" dev="ggregory" due-to="nbauma109">Added signature test cases for class/method, and bad signatures #182.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_20.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_20.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_21.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_21.</action>
<action type="add" dev="ggregory" due-to="nbauma109, Gary Gregory, Mark Roberts">[Bcelifier] stackmap support to pass JDK verifier #177.</action>
<!-- FIX -->
<action type="fix" dev="markt" due-to="OSS-Fuzz">When parsing an class with an invalid constant reference, ensure ClassParser.parse() throws ClassFormatException, not NullPointerException.</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 @@ -284,6 +284,14 @@ public final class Const {
*/
public static final short MINOR_20 = 0;

/**
* Minor version number of class files for Java 21: {@value}.
*
* @see #MAJOR_21
* @since 6.8.0
*/
public static final short MINOR_21 = 0;

/**
* Major version number of class files for Java 14: {@value}.
*
Expand Down Expand Up @@ -340,6 +348,14 @@ public final class Const {
*/
public static final short MAJOR_20 = 64;

/**
* Major version number of class files for Java 21: {@value}.
*
* @see #MINOR_21
* @since 6.8.0
*/
public static final short MAJOR_21 = 65;

/**
* Default major version number. Class file is for Java 1.1: {@value}.
*
Expand Down

0 comments on commit 9b1477c

Please sign in to comment.