From 9b1477c29accbd2391a7e0645b899643398d09c0 Mon Sep 17 00:00:00 2001 From: "Gary David Gregory (Code signing key)" Date: Sat, 14 Oct 2023 10:54:23 -0400 Subject: [PATCH] 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 bc0e369c66..fa368cb880 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -72,6 +72,8 @@ The type attribute can be add,update,fix,remove. Added signature test cases for class/method, and bad signatures #182. Add Const.MAJOR_20. Add Const.MINOR_20. + Add Const.MAJOR_21. + Add Const.MINOR_21. [Bcelifier] stackmap support to pass JDK verifier #177. When parsing an class with an invalid constant reference, ensure ClassParser.parse() throws ClassFormatException, not NullPointerException. diff --git a/src/main/java/org/apache/bcel/Const.java b/src/main/java/org/apache/bcel/Const.java index a76f7326bc..edf739ae25 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}. *