This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
commit 9b1477c29accbd2391a7e0645b899643398d09c0 Author: Gary David Gregory (Code signing key) <[email protected]> AuthorDate: Sat Oct 14 10:54:23 2023 -0400 Add Const.MAJOR_21 and Const.MINOR_21 --- src/changes/changes.xml | 2 ++ src/main/java/org/apache/bcel/Const.java | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index bc0e369c..fa368cb8 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -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> diff --git a/src/main/java/org/apache/bcel/Const.java b/src/main/java/org/apache/bcel/Const.java index a76f7326..edf739ae 100644 --- a/src/main/java/org/apache/bcel/Const.java +++ b/src/main/java/org/apache/bcel/Const.java @@ -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}. * @@ -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}. *
